Fixed warnings about deprecated use of defined(%hash) and defined(@array)