Selector pseudo-class :empty

p:empty
Selects every

element that has no children
(including text nodes)