original_string: private function doesFileChecksFailed(string $file): bool
      {
          //check if file exist
          if (!\file_exists($file)) {
              return true;
          }
  
          //take cache from file
          $cacheValue = include $file;
  
          //check if cache is expired and delete file from storage
          if ($cacheValue['expires'] <= \time() && $cacheValue['expires'] !== 0) {
              \unlink($file);
  
              return true;
          }
  
          return false;
      }
code: private function doesFileChecksFailed(string $file): bool
      {
          //check if file exist
          if (!\file_exists($file)) {
              return true;
          }
  
          //take cache from file
          $cacheValue = include $file;
  
          //check if cache is expired and delete file from storage
          if ($cacheValue['expires'] <= \time() && $cacheValue['expires'] !== 0) {
              \unlink($file);
  
              return true;
          }
  
          return false;
      }
code_tokens: private function doesFileChecksFailed ( string $ file ) : bool { //check if file exist if ( ! \ file_exists ( $ file ) ) { return true ; } //take cache from file $ cacheValue = include $ file ; //check if cache is expired and delete file from storage if ( $ cacheValue [ 'expires' ] <= \ time ( ) && $ cacheValue [ 'expires' ] !== 0 ) { \ unlink ( $ file ) ; return true ; } return false ; }
docstring: Checks for cache file.
  
  @param string $file
  
  @return bool
docstring_tokens: Checks for cache file .