cacheGet($cacheKey); if ($cached) { return $cached; } $globals = $this->fetchFromApi('optimized_globals'); if (empty($globals)) { return null; } $this->cacheSet($cacheKey, $globals[0]); return $globals[0]; } }