How to use Views PHP to code if a view exists and has content then echo...
You can look at views_get_view_result() and do something like this:

$result=views_get_view_result('teachers');
if (isset($result[0])) {
  // we have results
} else {
  // we don't
}