check for empty object before adding to list