handled checking array