Rule of thumb: try to not pass or return `nil`.

Once you start doing it, you have to start checking for `nil` everywhere, as your code demonstrates :)