Unless a corporation's charter provides otherwise, a director of the corporation who is a party to a proceeding may apply for indemnification to the court conducting the proceeding or to another court of competent jurisdiction. On receipt of an application, the court, after giving any notice the court considers necessary, may order indemnification in the amount it considers proper if it determines the director is: