print "foo" if $h{g} && $h{g}{h} && exists $h{g}{h}{i};