(a) A corporation may, before final disposition of a proceeding, advance funds to pay for or reimburse the reasonable expenses incurred by a director who is a party to a proceeding because he or she is a director if he or she delivers to the corporation:
- (1) A written affirmation of his or her good faith belief that he or she has met the relevant standard of conduct described in section eight hundred fifty-one of this article or that the proceeding involves conduct for which liability has been eliminated under a provision of the articles of incorporation as authorized by subdivision (4), subsection (b), section two hundred two, article two of this chapter; and
- (2) His or her written undertaking to repay any funds advanced if he or she is not entitled to mandatory indemnification under section eight hundred fifty-two of this article and it is ultimately determined under sections eight hundred fifty-four or eight hundred fifty-five of this article that he or she has not met the relevant standard of conduct described in section eight hundred fifty-one of this article.