you could also do: ``data['kwargs'].update(kwargs or [])``. But your solution is more easily understandable.