How should I write:
if @parent.child.grand_child.attribute.present? do_something
without cumbersome nil checkings to avoid exception:
You coult just catch the exception:
begin do something with parent.child.grand_child.attribute rescue NoMethodError => e do something else end