private function isFinal(Page $page = null)
    {
        $result = false;
        if (null !== $page) {
            $layout = $page->getLayout();
            if (null !== $layout && $layout->isFinal()) {
                $result = true;
            }
        }

        return $result;
    }