Hide empty paragraphs with :empty selector
li:empty { display: none; }
Check the demo here => CodePen