I believe that this piece of code is correct ;-) but I want to know a little bit more: Is this a bugfix? Can you give an use case when this code is executed? Have you tested this use case?
Shouldn't that be "is *an* empty list" in the doc?