replaced obsolete defined(@array) usage