(a) The court in an appraisal proceeding commenced under section one thousand three hundred thirty of this article shall determine all costs of the proceeding, including the reasonable compensation and expenses of appraisers appointed by the court. The court shall assess the costs against the corporation, except that the court may assess costs against all or some of the shareholders demanding appraisal, in amounts the court finds equitable, to the extent the court finds the shareholders acted arbitrarily, vexatiously, or not in good faith with respect to the rights provided by this article.
(b) The court in an appraisal proceeding may also assess the fees and expenses of counsel and experts for the respective parties, in amounts the court finds equitable:
(1) Against the corporation and in favor of any or all shareholders demanding appraisal if the court finds the corporation did not substantially comply with the requirements of section one thousand three hundred twenty, one thousand three hundred twenty-two, one thousand three hundred twenty-four or one thousand three hundred twenty-five of this article; or