54. Power to enter into building.

(a) if he considers the opening thereof necessary for the purpose of such entry; and
(b) if the owner or occupier is absent, or being present refuses to open such door, gate or barrier.