code: def remove_if_present(self, *tagnames):
          
          for tagname in tagnames:
              element = self.find(qn(tagname))
              if element is not None:
                  self.remove(element)
docs: Remove all child elements having tagname in *tagnames*.