The superior court of any such county shall enter his or her order authorizing such transfer of funds if he or she is satisfied, after hearing the petition therefor, that the port district is dissolved and disestablished or is about to be dissolved and disestablished and that no obligations of the port district remain unpaid. The court shall equitably divide such sums of money between school districts if there be more than one district involved.