original_string: public function has($name)
      {
          $key = mb_strtolower($name);
          foreach ($this->cookies as $cookie) {
              if (mb_strtolower($cookie->getName()) === $key) {
                  return true;
              }
          }
  
          return false;
      }
code: public function has($name)
      {
          $key = mb_strtolower($name);
          foreach ($this->cookies as $cookie) {
              if (mb_strtolower($cookie->getName()) === $key) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function has ( $ name ) { $ key = mb_strtolower ( $ name ) ; foreach ( $ this -> cookies as $ cookie ) { if ( mb_strtolower ( $ cookie -> getName ( ) ) === $ key ) { return true ; } } return false ; }
docstring: Check if a cookie with the given name exists
  
  @param string $name The cookie name to check.
  @return bool True if the cookie exists, otherwise false.
docstring_tokens: Check if a cookie with the given name exists