Check if a view is enabled or disabled How can I check from a custom module if a specific view is enabled or disabled?
I did it with module_invoke(). 

$block = module_invoke('views','block_view','-exp-machinenameoftheview-page');
if (!empty($block)) {
  // The view is enabled.
}
else{
  // The view is disabled.
}