Fix sequentially processing empty arrays or objects