/** * @return array|string */ public function toArray() { // make simple version if there is no meta data set if (empty($this->getAttribute('meta'))) { return $this->getAttribute('href') ?: ''; } return parent::toArray(); }