Check if a Cozy is registered

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 False