Ive made a comment in the function header.
Ive also changed the first argument to a reference, to signify that this node is being mutated