original_string: public function exists($key) {
          if (!array_key_exists($key, $this->storage))
              return false;
  
          if ($this->storage[$key]['expires'] > 0 && time() > $this->storage[$key]['expires'])
              return false;
  
          return true;
      }
code: public function exists($key) {
          if (!array_key_exists($key, $this->storage))
              return false;
  
          if ($this->storage[$key]['expires'] > 0 && time() > $this->storage[$key]['expires'])
              return false;
  
          return true;
      }
code_tokens: public function exists ( $ key ) { if ( ! array_key_exists ( $ key , $ this -> storage ) ) return false ; if ( $ this -> storage [ $ key ] [ 'expires' ] > 0 && time ( ) > $ this -> storage [ $ key ] [ 'expires' ] ) return false ; return true ; }
docstring: Checks if data exists in cache
  @param $key
  @return bool|string[]
docstring_tokens: Checks if data exists in cache