src/Template/TemplateUtil.php
public function isTemplatePartEmpty($template = null)
    {
        if (!\is_string($template)) {
            return true;
        }

        return empty($this->removeTemplateComment($template));
    }
public function isTemplatePartEmpty($template = null)
    {
        if (!\is_string($template)) {
            return true;
        }

        return empty($this->removeTemplateComment($template));
    }
public function isTemplatePartEmpty ( $ template = null ) { if ( ! \ is_string ( $ template ) ) { return true ; } return empty ( $ this -> removeTemplateComment ( $ template ) ) ; }
Return true, if the template part is empty.
Template comments from debug and white spaces are treated as empty.

Datatypes other than string (typical null) are also treated as empty.

@param string $template

@return bool
Return true if the template part is empty . Template comments from debug and white spaces are treated as empty .