Replace Sequence based check with Array based one.