AddToWorld Never returns true

This article has some mistakes in it.

"this function has to be called till it returns true "

This function return type is void. It will never return true.

Can we get a correction on how this function is supposed to work?