I've created a display called 'stats' for some views I've created - its cached and its generic and its quick and I use it for things like this
$result = views_get_view_result($view_name,'stats'); $count = count($result); if ($count) $variables['title'] .= ' ('.$count.')';
However, not all views have this display. How can I check, in php, if a given view has a display called 'stats' ?