code: def is_cozy_registered():
      '''
          Check if a Cozy is registered
      '''
      req = curl_couchdb('/cozy/_design/user/_view/all')
      users = req.json()['rows']
  
      if len(users) > 0:
          return True
      else:
          return Falsf is_cozy_registered():
      '''
          Check if a Cozy is registered
      '''
      req = curl_couchdb('/cozy/_design/user/_view/all')
      users = req.json()['rows']
  
      if len(users) > 0:
          return True
      else:
          return False
docs: Check if a Cozy is registered