s/length/scalar/ when checking length of array