Section 6. If the owner of stray beasts appears within one year after the finding thereof, and proves title thereto, he shall, if they have not been sold under the preceding section, have restitution thereof upon payment, except as provided in section two, of all reasonable expenses incurred by the finder in keeping such beasts and in complying with this chapter; but if they have been sold he shall be entitled to receive the proceeds of the sale after deducting the expenses aforesaid. If no such owner appears within said year the beasts, or the proceeds, shall enure to the finder, provided he has complied with this chapter.