private function isCacheAvailable()
 {
     static $result;
     if (null === $result) {
         $result = $this->isEnabled && (ToolInfo::isInstalledAsPhar() || ToolInfo::isInstalledByComposer());
     }
     return $result;
 }