avoid sending arrays of empty objects