(1) Order the corporation to pay the plaintiff's reasonable expenses (including attorneys' fees) incurred in the proceeding if it finds that the proceeding has resulted in a substantial benefit to the corporation; or
(2) Order the plaintiff to pay any defendant's reasonable expenses (including attorneys' fees) incurred in defending the proceeding if it finds that the proceeding was commenced or maintained without reasonable cause or for an improper purpose.