function() { if (!isset(self::$_cli)) { self::$_cli = (php_sapi_name() === 'cli'); } return self::$_cli; }