original_string: public function has($name): bool
      {
          try {
              $this->container->get($name);
  
              return true;
          } catch (\Exception $e) {
              return false;
          }
      }
code: public function has($name): bool
      {
          try {
              $this->container->get($name);
  
              return true;
          } catch (\Exception $e) {
              return false;
          }
      }
code_tokens: public function has ( $ name ) : bool { try { $ this -> container -> get ( $ name ) ; return true ; } catch ( \ Exception $ e ) { return false ; } }
docstring: Check if service is registered.
docstring_tokens: Check if service is registered .