This post moved to
https://squarism.com/posts/nil-if-and-collect-in-ruby
.