Skip missing array elements in hasSideEffect()