wrap empty ul elements in if, fixes #87
last commit didn't take