make sure we iterate only through an array in basket edit