(1) If an officer has taken possession of, and detained, an animal or conveyance under section 17 or 18 , the owner of the animal or conveyance may apply to a magistrate for its return.(2) On an application under subsection (1) , the magistrate may (a) order that the animal or conveyance be returned to its owner on any terms and conditions the magistrate considers just; or(b) refuse the application.