original_string: public function hasComponent($name)
      {
          $className = $this->resolve($name);
          if (!$className) {
              return false;
          }
  
          return isset($this->classMap[$className]);
      }
code: public function hasComponent($name)
      {
          $className = $this->resolve($name);
          if (!$className) {
              return false;
          }
  
          return isset($this->classMap[$className]);
      }
code_tokens: public function hasComponent ( $ name ) { $ className = $ this -> resolve ( $ name ) ; if ( ! $ className ) { return false ; } return isset ( $ this -> classMap [ $ className ] ) ; }
docstring: Checks to see if a component has been registered.
  @param string $name A component class name or code.
  @return bool Returns true if the component is registered, otherwise false.
docstring_tokens: Checks to see if a component has been registered .