code: public function has($id)
      {
          if (isset($this->singletons[$id])) {
              return true;
          }
  
          $methodName = 'get' . Util::mapIdToCamelCase($id);
  
          return method_exists($this, $methodName);
      }
docs: @param $id
  
  @return bool