public function getPages($identifier = '')
    {
        if (!empty($identifier)) {
            return $this->hasPage($identifier) ? $this->pages[$identifier] : null;
        }

        return $this->pages;
    }