Although...is there a reason why this `if` is only in the `edit.lastChild` case? (i.e., why isn't it parallel to the `before` case, which you handle outside the `if`)