Elixir way to conditionally update a map

Either you can either conditionally put value or reject it. If there’s only field like body, I’ll lean towards putting conditionally or it there’s more than one nil value then reject it.