289. Powers for effecting entry.

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