code: def hasParam(self, paramName):
          
          if isinstance(paramName, basestring):
              p = getattr(self, paramName, None)
              return isinstance(p, Param)
          else:
              raise TypeError("hasParam(): paramName must be a string")
docs: Tests whether this instance contains a param with a given
          (string) name.