I don't know to be honest, i did some googling and I found some references saying this was the way to go: http://stackoverflow.com/questions/7141334/checking-if-a-jquery-selector-doesnt-find-any-results