Before the service of the order for replevin the plaintiff or some one else on his or her behalf shall give to the sheriff or other officer a bond with sufficient security in double the value of the property about to be replevied, conditioned that he or she will prosecute such action to effect and without delay and make return of the property to the defendant if return of the property shall be awarded or will deliver the same to the intervening petitioner should it be found that the property belongs to him or her, and save and keep harmless such sheriff or other officer as the case may be, in replevying such property and further conditioned for the payment of all costs and damages occasioned by wrongfully obtaining out the order for replevin, and if the sureties on such bond at any time before trial becomes insolvent, an order shall be entered requiring good and sufficient replevin bond to be filed, and if the same is not so filed within the time fixed by the court, the action shall be dismissed.
735 ILCS 5/19-112