Any one having a person in his or her custody, or under his or her restraint, power or control, for whose relief an order of habeas corpus is entered, who, with intent to avoid the effect of such order, transfers such person to the custody or places him or her under the control of another, or conceals him or her, or changes the place of his or her confinement, with intent to avoid the operation of such order, or with intent to remove him or her out of the State, shall, for every such offense, be guilty of a Class 4 felony. In any prosecution for the penalty incurred under this Section it shall not be necessary to show that the order of habeas corpus had been entered at the time of the removal, transfer or concealment therein mentioned, if it is proven that the acts therein forbidden were done with the intent to avoid the operation of such order.
735 ILCS 5/10-132