protected function checkRequiredFields()
    {
        if (! empty($this->requiredFields)) {
            foreach ($this->requiredFields as $field) {
                if (is_string($field) && ($this->getInfoByKey($field) === false ||
                        ! isset($this->info[$field]))
                ) {
                    $this->missingRequiredFields[] = $field;
                }
            }

            if (! empty($this->missingRequiredFields)) {
                $this->setError('Missing Required Field(s)');
                throw new MissingRequiredFields($this->getYmlPath(), $this);
            }
        }

        return $this;
    }
protected function checkRequiredFields()
    {
        if (! empty($this->requiredFields)) {
            foreach ($this->requiredFields as $field) {
                if (is_string($field) && ($this->getInfoByKey($field) === false ||
                        ! isset($this->info[$field]))
                ) {
                    $this->missingRequiredFields[] = $field;
                }
            }

            if (! empty($this->missingRequiredFields)) {
                $this->setError('Missing Required Field(s)');
                throw new MissingRequiredFields($this->getYmlPath(), $this);
            }
        }

        return $this;
    }
@throws \ThemeManager\Exceptions\MissingRequiredFields When required field is empty

@return $this