Try defining a `nillify` function and just map over it?

```elixir
defp nillify(""), do: nil
defp nillify(o), do: o
```