fix conditions for square bracket evaluation as destructuring assign for #883