Wherever, under the provisions of this chapter or the Village Law of the State of New York, the Board of Appeals is required to review any order, requirement, decision or determination made by an administrative official charged with the enforcement of this chapter, or whenever it is required to hear and decide any matters referred to it upon which said Board may be required to pass and upon any and all other matters where its approval, consent or permit is required, the Board, in its consideration and determination, shall confine itself to the purposes expressed in the Village Law and in this chapter, namely, that such chapter is enacted for the purpose of promoting the health, safety, morals or the general welfare of the community.