check for empty object