alert() changed to be able to use array and empty.