use `name = kwargs.pop("name", None)`` - much more concise :)