public function flushSectionsIfDoneRendering() { if ($this->doneRendering()) { $this->flushSections(); } }