I have this line of code:
$(\'#sitesAccordion .groupOfSites\').click(function() { var lastOpenSite = $(this).siblings().hasClass(\':not(.closedTab)\'); c
It's much easier to do like this:
if(!$('#foo').hasClass('bar')) { ... }
The ! in front of the criteria means false, works in most programming languages.