public function isSchedulerSet($api, array $args)
 {
     global $sugar_flavor;
     // if it's CE, always show scheduler data
     if ($sugar_flavor != 'CE' && AddonBoilerplate_Helper::is_ondemand_instance() === true) {
         return array('ondemand' => true, 'scheduler_ran' => '', 'is_windows' => '', 'realpath' => '');
     }
     $scheduler_ran = false;
     $instructions = '';
     $scheduler = BeanFactory::getBean('Schedulers');
     $scheduler_list = $scheduler->get_list('', 'last_run is not null');
     if (!empty($scheduler_list) && $scheduler_list['row_count'] > 0) {
         $scheduler_ran = true;
     }
     if (!isset($_SERVER['Path'])) {
         $_SERVER['Path'] = getenv('Path');
     }
     return array('ondemand' => false, 'scheduler_ran' => $scheduler_ran, 'is_windows' => is_windows(), 'realpath' => SUGAR_PATH);
 }