check zero length arrays