An array of jquery elements does not result in "true" for "Array.isArray(elements)". Recommend putting this back to checking `elements.length`.