Why isn't there a check for Empty Array Index?

Both ways work well

350501-is-empty-array.png