yep, but there I will have an empty array, not undefined, so 
var a = []; a[0]
undefined 
So there is no exception thrown what so ever.