public function getAuthor() { if (!empty($this->data['author_id'])) { return Author::findOneById($this->data['author_id']); } else { return false; } }