For the purposes of section 91(4)(a), the second set of conditions for a remand to youth detention accommodation is met in relation to a child if each of the following is met in relation to the child—
The age condition is that the child has reached the age of twelve.
The sentencing condition is that it appears to the court that it is very likely that the child will be sentenced to a custodial sentence for the offence mentioned in section 91(1) or one or more of those offences.
The offence condition is that the offence mentioned in section 91(1), or one or more of those offences, is an imprisonable offence.
The first history condition is that—
The second history condition is that the offence or offences mentioned in section 91(1), together with any other imprisonable offences of which the child has been convicted in any proceedings, amount or would, if the child were convicted of that offence or those offences, amount to a recent and significant history of committing imprisonable offences while on bail or subject to a custodial remand , and this appears to the court relevant in all the circumstances of the case.
The necessity condition is that the court is of the opinion, after considering all the options for the remand of the child, that only remanding the child to youth detention accommodation would be adequate—
and that the risks posed by the child cannot be managed safely in the community.
The first legal representation condition is that the child is legally represented before the court.
The second legal representation condition is that the child is not legally represented before the court and—
In this Chapter "custodial sentence" means a sentence or order mentioned in section 222(1) of the Sentencing Code.
The reference in subsection (5)(b) to a child being remanded to local authority accommodation or youth detention accommodation includes—