If upon hearing the petition, the court finds that it is not properly signed, that the allegations of the petition are not true or that the proposed detachment is not in the best interest of the district and of the lands proposed to be detached, then the court shall deny the petition. If the court finds for the petitioners and has not been requested in writing to ascertain the proportionate share of the cost of reconstruction, repair and maintenance work on the levee or outlet of the drainage district which shall be borne by the municipal corporation in the future, then the court shall order the lands detached from the district. If, however, the court finds for the petitioners and has been requested in writing to ascertain such proportionate share and appropriate pleadings have been filed, then the court shall continue the hearing for the purpose of hearing additional evidence and ascertaining such proportionate share. When the court has ascertained the proportionate share of the cost of such work which the municipal corporation should bear or such proportion has been fixed by an agreement between the commissioners of the drainage district and the corporate authorities of the municipal corporation and approved by the court, the court shall order the lands detached from the district and by that order establish such proportionate share in accordance with its findings or in accordance with the approved agreement. The failure of a district to proceed with a claim against a municipal corporation for the proportionate share of the cost of future work under this section shall not bar the district from bringing an action against the municipal corporation in the manner provided in Article II of this Act.
70 ILCS 605/8-19