`'username' in kwargs` is more idiomatic.