/** * Check if Parent Tag has elements * * @return bool */ private function isParentHasElements() { return $this->hasParent() and $this->parent->hasElements(); }