cacheGet($cacheKey); if ($cached) { return $cached; } $artist = $this->fetchSingleFromApi('optimized_artists', $url); if (! $artist) { return null; } $artist['globals'] = $this->getGlobals(); $this->cacheSet($cacheKey, $artist); return $artist; } }