Mr Alan Sir suggests using `if ($.fn.chosen) {` as a better way to detect whether it is loaded, as it does not require elements to be selected.