If upon the trial of an action brought under § 40-28-18 it appears that the defendant is not the owner or person in charge of such offending animal or animals, the action shall be dismissed, and such animal or animals shall be held and considered as estrays and the person claiming damage shall be governed by the provisions of this code relating to estrays.
SDCL 40-28-22