`undefined[0]` throws a `TypeError: Cannot read property '0' of undefined`