/** * @return bool Whether file cache exists or not. */ private function isCached() { if ($this->cache->exist()) { try { $this->cache->lazyLoad(); } catch (CorruptedDataException $e) { $this->createCache(); } return true; } return false; }