public function getInstalls()
    {
        if (!$this->loadRepositories()) {
            return Repository::STATUS_NO_REPOSITORIES;
        }

        $modules = $this->getModulesFromRepository();

        // Is the package already installed? If yes, is a higher version available?
        foreach ($modules as $key => $module) {
            $version = $this->packageService->getVersion($module->name);
            // Not installed yet.
            if ($version) {
                // Older version installed.
                unset($modules[$key]);
            }
        }

        return $modules;
    }