isEmptyObject = function (obj) {
        // eslint-disable-next-line no-restricted-syntax
        for (var prop in obj) {
            if (Object.prototype.hasOwnProperty.call(obj, prop)) {
                return false;
            }
        }
        return true;
    }
Helpers to create HTML elements used by Choices
Can be overridden by providing `callbackOnCreateTemplates` option.
`Choices.defaults.templates` allows access to the default template methods from `callbackOnCreateTemplates`