print "foo is there" if exists $hash{foo};