code: func (d *InstanceDiff) Empty() bool {
  	if d == nil {
  		return true
  	}
  
  	d.mu.Lock()
  	defer d.mu.Unlock()
  	return !d.Destroy &&
  		!d.DestroyTainted &&
  		!d.DestroyDeposed &&
  		len(d.Attributes) == 0
  }
docs: // Empty returns true if this diff encapsulates no changes.