Get rid of perl deprecation warning by avoiding old "defined(%hash)" idiom