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

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

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

@param  Page|null $page [description]
@return boolean         [description]
Check if the page is final