Replace with ``value = kwargs.get(param) `` and you can remove the previous ``if`` statement.