original_string: public function has($key)
      {
          $file = $this->getFileName($key);
  
          if ( !file_exists($file) )
          {
              return false;
          }
  
          // if cache file expire
          if ( filemtime($file) >= time() )
          {
              static::$keys[$key] = true;
  
              return true;
          }
          else
          {
              unset(static::$keys[$key]);
              unlink($file);
  
              return false;
          }
      }
code: public function has($key)
      {
          $file = $this->getFileName($key);
  
          if ( !file_exists($file) )
          {
              return false;
          }
  
          // if cache file expire
          if ( filemtime($file) >= time() )
          {
              static::$keys[$key] = true;
  
              return true;
          }
          else
          {
              unset(static::$keys[$key]);
              unlink($file);
  
              return false;
          }
      }
code_tokens: public function has ( $ key ) { $ file = $ this -> getFileName ( $ key ) ; if ( ! file_exists ( $ file ) ) { return false ; } // if cache file expire
   if ( filemtime ( $ file ) >= time ( ) ) { static :: $ keys [ $ key ] = true ; return true ; } else { unset ( static :: $ keys [ $ key ] ) ; unlink ( $ file ) ; return false ; } }
docstring: Check has cache key
  
  @param string $key
  @return bool
docstring_tokens: Check has cache key