FIX: iterating arrays and object where elements are deleted.