As far a I recall I couldn't see a reason for this. Besides the function seems to be working without that code.

Do you recall what's the reason for this line?