text
http://jsfiddle.net/wZ8MC/2/
jQuery(document).ready(functi
Check the length of your jQuery "collection":
if (jQuery('#bad-drifting li:has(em)').length > 0) { // There is at least one element
otherwise it will always be true, because what jQuery returns is always truthy.