What was he thinking :)
But seeing teenagers do not think, I believe the court made the correct decision. Hopefully he can meet the court's requirements and is able to leave safely.