Why not use `if 'token' in kwargs:` instead of try-except block?