if client.bucket_exists("my-bucket"): print("my-bucket exists") else: print("my-bucket does not exist")