if (exists $Hash{$neededVal} && exists $Hash{$neededVal}{param1} && exists $Hash{$neededVal}{param1}{key1}) { print "DEFINED\n"; }