I have some server side HTML output I cannot deal with using pure CSS, essentially the DIV sometimes holds:
Content
You can do this using only CSS:
div:empty { display: none }