public function getName() { if (isset($this->oembed->title)) { return $this->oembed->title; } else { return parent::getName(); } }