<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_if_unique(self, name):
 """ Returns ``True`` on success. Returns ``False`` if the name already exists in the namespace. """

        with self.lock:
            if name not in self.names:
                self.names.append(name)
                return True
        return False