<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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