code: def add_if_unique(self, name):
          
          with self.lock:
              if name not in self.names:
                  self.names.append(name)
                  return True
          return False
docs: Returns ``True`` on success.
  
          Returns ``False`` if the name already exists in the namespace.