JQuery Selector existiert
if ($(selector).length ) {
// Do something
}
Matteoweb
if ($(selector).length ) {
// Do something
}