Fix empty arrays