public static function exist($name)
    {
        $name = ucfirst($name);

        /*
         * If it was checked before negatively - direct return.
         */
        if (in_array($name, self::$_unavailableModules)) {
            return false;
        }

        /*
         * Check if it was already loaded.
         */
        if (isset(self::$_loadedModules[$name])) {
            return true;
        }

        /*
         * Or the file exists.
         */
        if (file_exists(self::getModulePath().$name.'.php')) {
            return true;
        } else {
            self::$_unavailableModules[] = $name;
        }

        /*
         * Module does not exist.
         */

        return false;
    }
public static function exist($name)
    {
        $name = ucfirst($name);

        /*
         * If it was checked before negatively - direct return.
         */
        if (in_array($name, self::$_unavailableModules)) {
            return false;
        }

        /*
         * Check if it was already loaded.
         */
        if (isset(self::$_loadedModules[$name])) {
            return true;
        }

        /*
         * Or the file exists.
         */
        if (file_exists(self::getModulePath().$name.'.php')) {
            return true;
        } else {
            self::$_unavailableModules[] = $name;
        }

        /*
         * Module does not exist.
         */

        return false;
    }
public static function exist ( $ name ) { $ name = ucfirst ( $ name ) ; /*
         * If it was checked before negatively - direct return.
         */ if ( in_array ( $ name , self :: $ _unavailableModules ) ) { return false ; } /*
         * Check if it was already loaded.
         */ if ( isset ( self :: $ _loadedModules [ $ name ] ) ) { return true ; } /*
         * Or the file exists.
         */ if ( file_exists ( self :: getModulePath ( ) . $ name . '.php' ) ) { return true ; } else { self :: $ _unavailableModules [ ] = $ name ; } /*
         * Module does not exist.
         */ return false ; }
Checks if the Module was loaded before or if the module file exists

@param string $name the module name

@return boolean
Checks if the Module was loaded before or if the module file exists