42. Power to enter into buildings.

(a) if he considers the opining 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.