code: def has(self, name, ignore_empty=False):
          
          name = str(name).strip()
          for param in self.params:
              if param.name.strip() == name:
                  if ignore_empty and not param.value.strip():
                      continue
                  return True
          return False
docs: Return ``True`` if any parameter in the template is named *name*.
  
          With *ignore_empty*, ``False`` will be returned even if the template
          contains a parameter with the name *name*, if the parameter's value
          is empty. Note that a template may have multiple parameters with the
          same name, but only the last one is read by the MediaWiki parser.