I think you can use the `failure-result` argument to `dict-update` to remove this `if`.