The possibility of writing empty `<li></li>`s to the page here bothers me a bit. However I'm not sure silence is better than looking broken in this case.