1. Any trustee of a trust arising under this article, and any officer, director or agent of such trustee, who applies or consents to the application of trust funds received by the trustee as money or an instrument for the payment of money for any purpose other than the trust purposes of that trust, as defined in section seventy-one, is guilty of larceny and punishable as provided in the penal law if
- (a) such funds were received by the trustee as owner, as the term "owner" is used in article three-a of this chapter, and they were so applied prior to the payment of all trust claims as defined in such article three-a, arising at any time; or
- (b) such funds were received by the trustee as contractor or subcontractor, as such terms are used in article three-a of this chapter, and the trustee fails to pay, within thirty-one days of the time it is due, any trust claim arising at any time; provided, however, that if the trustee who received such funds as contractor or sub-contractor disputes in good faith the existence, validity or amount of a trust claim or disputes that it is due, the application of trust funds for a purpose other than a trust purpose, or the consent to such application, shall not be deemed larceny by reason of failure to pay the disputed claim within thirty-one days of the date when it is due if the trustee pays such claim within thirty-one days after the final determination of such dispute.