Simple check to avoid union types containing lots of empty object literals.