author !== null && $this->author !== ''; } public function searchQuery(): string { return trim(($this->author ?? '').' '.$this->title); } }