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