undefined -> nil conversion