is_various || $artist->is_unknown) { return null; } return Arr::get( $this->client->search($artist->name, 'artist', ['limit' => 1]), 'artists.items.0.images.0.url' ); } public function tryGetAlbumCover(Album $album): ?string { if (!static::enabled()) { return null; } if ($album->is_unknown || $album->artist->is_unknown || $album->artist->is_various) { return null; } return Arr::get( $this->client->search("{$album->name} artist:{$album->artist->name}", 'album', ['limit' => 1]), 'albums.items.0.images.0.url' ); } }