exists $arrayref->[1][2][$idx] exists $hashref->{this}{that}{$key};