mikejmoran of Speak Creative
3/19/2019 - 7:45 PM

exists.js

jQuery.fn.exists = function(){ return this.length > 0; }

if ( $('selector').exists() ) {
    // Do something
}