Upon the filing of a petition under this Section, the court shall hold a hearing on the petition at which the district and any of the residents or landowners of the district may be heard. The court shall give notice of the hearing in the manner provided in subsection (d) of Section 1 of this Act.
The court shall consider the boundaries of the territory to be disconnected, the terms of the disconnection agreement between the owners and the district, and the facts upon which the agreement and the petition are founded. The court may approve the agreement and order the territory disconnected from the district if it determines that the requirements of this Section have been met, that the material allegations upon which the agreement and the petition are founded are true, and that the disconnection is not unreasonable or contrary to the general interests of the residents and landowners of the district. If the court determines that the requirements of this Section have not been met, that any material allegation upon which the agreement or the petition are founded is untrue, or that the disconnection is unreasonable or contrary to the general interests of the residents and landowners of the district, it shall not then approve the agreement or order the territory disconnected from the district, but it may allow the district and the owners of the territory to amend the petition and agreement or take other action to cure the defect. The decision of the court is appealable as in other civil cases.
70 ILCS 2805/32a.5-1