The local municipality may, in granting a permission to demolish a building, impose any condition or requirements for the safety, health and convenience of the public, and for the safety of any other building or installation which in its opinion may be affected by such demolition.