546. Breaking into building.

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