If any person who has taken up any animal shall refuse to deliver it to the owner on his or her having complied with the requirements of this subchapter, as respects proving ownership of the animal, the owner shall have a right of civil action. If the owner recovers in an action, he or she shall also recover double costs.