Neither the husband nor wife can remove the other or their children from their homestead without the consent of the other, unless the owner of the property shall, in good faith, provide another homestead suitable to the condition in life of the family; and if he abandons her, she is entitled to the custody of their minor children, unless a court of competent jurisdiction, upon application for that purpose, shall otherwise direct.
750 ILCS 65/16