perl 5.16: defined(%hash) is deprecated
        (Maybe you should just omit the defined()?)