original_string: public function check($key = null)
      {
          if (empty($key)) {
              return false;
          }
  
          return $this->read($key) !== null;
      }
code: public function check($key = null)
      {
          if (empty($key)) {
              return false;
          }
  
          return $this->read($key) !== null;
      }
code_tokens: public function check ( $ key = null ) { if ( empty ( $ key ) ) { return false ; } return $ this -> read ( $ key ) !== null ; }
docstring: Returns true if given key is set in the cookie.
  
  @param string|null $key Key to check for
  @return bool True if the key exists
docstring_tokens: Returns true if given key is set in the cookie .