[fix]: simplify inArray loop check