Check if cluster exists. If it does not, raise exception.

def check_cluster_exists(self, name):
        """Check if cluster exists. If it does not, raise exception."""
        self.kubeconf.open()
        clusters = self.kubeconf.get_clusters()
        names = [c['name'] for c in clusters]
        if name in names:
            return True
        return False