School 'safer than remaining in community'