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