private function getName() {
    if (!is_null($this->options->name)) {
      return $this->options->name;
    }

    if (!is_null($this->media)) {
      return $this->media->name;
    }

    return '';
  }