Any person, persons or corporation petitioning or otherwise making any application to the Board of Trustees of the Village of East Hampton for any change, changes, alterations or amendments to Chapter
278, Zoning, of the Code of the Village of East Hampton, or for any other purpose whatsoever, whereby it is necessary for the Village Board to hold a public hearing or hearings, shall deposit with the Village Clerk and/or Board of Trustees of said village the sum of $50 cash, or a bond with sufficient surety in a like amount, approved by the Mayor or Board of Trustees, conditioned for the payment of all costs and expenses incurred by said village in connection with said hearing or hearings, the advertising of the notices, and any election or referendum necessarily required by reason of the petition or application made. If the petition or application is granted, $50 shall be returned to the petitioner or applicant, or the bond canceled, but if the petition or application is not granted or allowed, all the expenses, costs, etc., in connection with the matter shall be deducted from the amount deposited or secured, and if there is any balance thereof the same shall be returned to the petitioner or applicant, and if the cost should be in excess of the amount deposited, the petitioner or applicant shall be liable therefor.