Under New York State law, zoning boards and planning boards are authorized to impose reasonable and appropriate conditions and restrictions on the grant of a variance or special permit, provided that they are directly related to, and incidental to, the proposed use of the property. Such conditions shall be consistent with the spirit and intent