#NEWLINE# def exists( self , client = None ) : #NEWLINE# #INDENT# 'Determines whether or not this bucket exists.\n\n        :type client: :class:`gcloud.storage.client.Client` or ``NoneType``\n        :param client: Optional. The client to use.  If not passed, falls back\n                       to the ``client`` stored on the current bucket.\n\n        :rtype: boolean\n        :returns: True if the bucket exists in Cloud Storage.\n        ' #NEWLINE# client = self . _require_client ( client ) #NEWLINE# try : #NEWLINE# #INDENT# query_params = { #NEWLINE# #INDENT# 'fields' : 'name' , #NEWLINE# #UNINDENT# } #NEWLINE# client . connection . api_request ( method = 'GET' , path = self . path , query_params = self , _target_object = None ) #NEWLINE# return True #NEWLINE# #UNINDENT# except NotFound : #NEWLINE# #INDENT# return False