internal static bool IsChoiceEmpty(DeviceSpecificChoice choice) { if ((choice != null) && (choice.get_HasTemplates() || ((choice.get_Contents() != null) && (choice.get_Contents().Count != 0)))) { return false; } return true; }