Where a custody officer—
a magistrates' court may, on application by or on behalf of that person, grant bail or vary the conditions.
On an application under subsection (1) the court, if it grants bail and imposes conditions or if it varies the conditions, may impose more onerous conditions.
On determining an application under subsection (1) the court shall remand the applicant, in custody or on bail in accordance with the determination, and, where the court withholds bail or grants bail the grant of bail made by the custody officer shall lapse.
In this section "bail in criminal proceedings" and "vary" have the same meanings as they have in the Bail Act 1976.