protected function getPages(array $slugsArray = [])
    {
        /** @var Page[] $pages */
        $pages = $this->get('orbitale_cms.page_repository')
            ->findFrontPages($slugsArray, $this->request->getHost(), $this->request->getLocale())
        ;

        if (!count($pages) || (count($slugsArray) && count($pages) !== count($slugsArray))) {
            throw $this->createNotFoundException(count($slugsArray)
                ? 'Page not found'
                : 'No homepage has been configured. Please check your existing pages or create a homepage in your application.');
        }

        return $pages;
    }