The paragraph is created when an `<enter>` is pressed inside only an empty `li`. Therefore there should be no text inside that `li`.
The correcting function is triggered by the `<enter>` key press. So there should be no opportunity for the user to enter text into that `p` before it gets removed.
Does this seem reasonable?