jQuery.exists = function(selector) {
    return ($(selector).length > 0);
}

$(function() {

});

