Where a person is charged, before a court of summary jurisdiction, with an offence against the law of the Commonwealth, if, from the absence of witnesses or from any other reasonable cause, it becomes necessary or advisable to defer the hearing of the case, the court before whom the accused person appears or is brought, may:
(a) by warrant from time to time remand the defendant to some gaol, lock - up, or other place of custody for such period as the court shall deem necessary to be there kept until the time appointed for continuing the hearing; or
(b) order the discharge of the defendant upon his or her entering into a recognizance conditioned for his or her appearance at the time and place appointed for continuing the hearing.