code: def user_exists(self, name):
          
          users = self.data['users']
          for user in users:
              if user['name'] == name:
                  return True
          return False
docs: Check if a given user exists.