Text this: School quality, safe schools: an empirical analysis