feat(Node.prune): do not add double negation to if test expression.

Also addressed code review concerns.