In Groovy, there is a nice syntax for working with null values.
For example, I can do an if statement:
if (obj1?.obj2?.value) { }
Ruby 2.3 will have support for the safe navigation operator:
obj1&.obj2&.value
https://www.ruby-lang.org/en/news/2015/11/11/ruby-2-3-0-preview1-released/