If, in any petition for the incorporation of a borough, the boundaries fixed by the petitioners embrace lands exclusively used for the purposes of farming, the court may, if it deems the land does not properly belong to the proposed borough and at the request of any party aggrieved, change the boundaries to exclude the land used for farming.