protected function closeSection() { if ($this->isEmptySection()) { $this->saveEmptyTag($this->emptyLineElement); } parent::closeSection(); }