original_string: public function hasHeader($key, $toLower = true)
      {
          if ($toLower === true) {
              $key = strtolower($key);
          }
          return isset($this->_headers[$key]);
      }
code: public function hasHeader($key, $toLower = true)
      {
          if ($toLower === true) {
              $key = strtolower($key);
          }
          return isset($this->_headers[$key]);
      }
code_tokens: public function hasHeader ( $ key , $ toLower = true ) { if ( $ toLower === true ) { $ key = strtolower ( $ key ) ; } return isset ( $ this -> _headers [ $ key ] ) ; }
docstring: Check HTTP header is set or not
  @param string $key the header key to be check, not case sensitive
  @param boolean $toLower convert key to lowercase
  @return boolean if there is http header with the name.
docstring_tokens: Check HTTP header is set or not