Check if a given cluster exists.

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