Could this not be simplified such that `prev = node.head` and `link = node.head.next` or `link = prev.next` ?