Check if a given user exists.

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