src/includes/classes/Core/Template.php
protected function hasParent(string $file = null): bool
    {
        if (isset($file)) {
            return in_array($file, $this->parents, true);
        }
        return !empty($this->parents);
    }
protected function hasParent(string $file = null): bool
    {
        if (isset($file)) {
            return in_array($file, $this->parents, true);
        }
        return !empty($this->parents);
    }
Has a parent?

@since 150424 Initial release.

@param string|null $file Template file.

@return bool True if child has a parent.