Can you think of a way to check if myArray is empty?
myArray
Nice! myArray.length == 0 returns true if there aren't any elements in the array.
myArray.length == 0
true
Oh noes! myArray.length == 0 returns true if there aren't any elements in the array.