I currently do this to check if one of two elements exists:
if ($(\".element1\").length > 0 || $(\".element2\").length > 0) { //do stuff... }
!$.isEmptyObject($.find('#urId'))
this will return "true" if the element exists and False if not
cheers :)