CMS\Page::isValid PHP Method

isValid() public method

public isValid ( array $skip = [] ) : boolean
$skip array
return boolean
    public function isValid(array $skip = [])
    {
        if ($this->isDir()) {
            return !in_array($this->getRealPath(), $skip);
        }
        return preg_match('#md|html|phtml|latte#i', $this->getExtension()) && !in_array($this->getName(), $skip);
    }