public function getPrimaryAuthor() { $author = $this->getMainAuthorEntry(); if (!$author || !is_array($author)) { return parent::getPrimaryAuthor(); } return $author['name']; }