public static function checkDebug() { if (defined('ON_DEBUG') && ON_DEBUG) { Exception::displayErrors(); Exception::start(); } else { ini_set('display_errors', FALSE); } }