isEnabled()) { $bbb = new bbb(); if ($bbb->pluginEnabled) { $activeSessions = $bbb->getActiveSessionsCount(); if (empty($activeSessions)) { $vm->runCron(); } else { echo "Can't run cron active sessions found: ".$activeSessions; } } } }