Hide empty tabs automatically

Hide empty tabs automatically

Hi there,
I have just recently explored JQuery and successfully implemented the
UI tabs on my site. I figured out how to hide the tabs, BUT I
couldn't find a solution to hide a tab when it's empty without having
to hard code it in. I think I need to use a conditional statement,
but I'm not sure how to go about it. Am I on the right track? Any
help is appreciated.
Thanks!
--