src/Components.php
public static function exists($sSlug): bool
    {
        $aModules = static::modules();

        foreach ($aModules as $oModule) {
            if ($sSlug === $oModule->slug) {
                return true;
            }
        }

        return false;
    }
public static function exists($sSlug): bool
    {
        $aModules = static::modules();

        foreach ($aModules as $oModule) {
            if ($sSlug === $oModule->slug) {
                return true;
            }
        }

        return false;
    }
public static function exists ( $ sSlug ) : bool { $ aModules = static :: modules ( ) ; foreach ( $ aModules as $ oModule ) { if ( $ sSlug === $ oModule -> slug ) { return true ; } } return false ; }
Test whether a component is installed

@param string $sSlug The component's slug

@return bool
Test whether a component is installed