Changed array empty detection