def check_user_is_administrator(user):
    try:
        user.administrator
        return True
    except:
        return False