I've tested this scenario with forgotten node, and I was checking this many times and always when I used nodes.map method, empty record occurred, only condition with delete_if helps.

I would prefer to leave this line.