public function isValid()
    {
        if ($this->get('page-template')->getValue() == 'blank') {
            $this->setValidationGroup(
                [
                    'url',
                    'title',
                    'main-layout',
                ]
            );
        } else {
            $this->setValidationGroup(
                [
                    'url',
                    'title',
                    'page-template',
                ]
            );
        }

        return parent::isValid();
    }