def attribute_missing?(name)
      selection = __selected_fields
      return false unless selection
      field = fields[name]
      (selection.values.first == 0 && selection_excluded?(name, selection, field)) ||
        (selection.values.first == 1 && !selection_included?(name, selection, field))
    end
def attribute_missing?(name)
      selection = __selected_fields
      return false unless selection
      field = fields[name]
      (selection.values.first == 0 && selection_excluded?(name, selection, field)) ||
        (selection.values.first == 1 && !selection_included?(name, selection, field))
    end
Determine if the attribute is missing from the document, due to loading
 it from the database with missing fields.

 @example Is the attribute missing?
   document.attribute_missing?("test")

 @param [ String ] name The name of the attribute.

 @return [ true, false ] If the attribute is missing.

 @since 4.0.0