code: public function renderCaption()
      {
          if (!empty($this->caption)) {
              return Html::tag('caption', $this->caption, $this->captionOptions);
          }
  
          return false;
      }
docs: Renders the caption element.
  @return bool|string the rendered caption element or `false` if no caption element should be rendered.