check for empty objects and prevent apply