public function renderCaption() { if (!empty($this->caption)) { return Html::tag('caption', $this->caption, $this->captionOptions); } else { return false; } }