dfaure added inline comments. | View Revision
This could have just been an else of the branch above
And then one day someone adds a check for contains() before prepend(), for instance, and you would need to come back to this structure of the code. So this is more flexible.