if (defined ($hash{data}{test1}{ha1}{blubb1})) { print "Pfad existiert bereits in DB\n"; }