empty array checking and messages. arraysEmpty method