Can you think of a way to check if myArray is empty?

myArray.length == 0myArray != nullmyArray[0] != ""myArray.isEmpty()

Nice! myArray.length == 0 returns true if there aren't any elements in the array.

Oh noes! myArray.length == 0 returns true if there aren't any elements in the array.