don't serialize empty collections