public function getModules($hook = null)
    {
        if (isset($hook) && in_array($hook, array_keys($this->modules))) {
            return $this->modules[$hook];
        }

        return $this->modules;
    }