<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cluster_exists(self, name):
 """Check if a given cluster exists."""

        clusters = self.data['clusters']
        for cluster in clusters:
            if cluster['name'] == name:
                return True
        return False