No need to test `length`. If the array is empty, the `for` loop will just skip over it.