Remove unnecessary copy of array_lengthof.