The owner or proprietor, or his or her or its agent or agents, may take possession of any bottles, boxes, tins, cans, or other receptacles or containers, used in violation of this subchapter, whether the receptacles or containers be full or partly full of any liquid, beverage or other substance, or empty, and shall not be liable in damages therefor, or for any trespass arising out of taking possession. Should the party or parties having possession of the receptacles or containers refuse to empty the same of the contents contained therein immediately, upon notice and demand by the owner or proprietor, or his or her or its agent or agents, then the owner, proprietor or agent may empty the receptacles or containers and shall not be liable therefor.