public function modules()
    {
        $modules = [];

        foreach ($this->modulesToCheck as $module) {
            $modules[$module] = in_array('mod_' . $module, apache_get_modules());
        }

        return $modules;
    }
public function modules()
    {
        $modules = [];

        foreach ($this->modulesToCheck as $module) {
            $modules[$module] = in_array('mod_' . $module, apache_get_modules());
        }

        return $modules;
    }
public function modules ( ) { $ modules = [ ] ; foreach ( $ this -> modulesToCheck as $ module ) { $ modules [ $ module ] = in_array ( 'mod_' . $ module , apache_get_modules ( ) ) ; } return $ modules ; }
Checks if some modules are loaded
@return array
@uses $modulesToCheck
Checks if some modules are loaded