Avoiding NoMethodError with Safe Navigation Operator in Ruby ~2.3
medium.com