Fix for the case when the first item is on the subarray.
Add initial verification.