I'm afraid it does. It sets up `$sn` for use in the next line. If I recall correctly it simply ensures that if there are duplicate named columns, they'll have `_[UNIQUE_NUMBER]` appended to the end of the column name.

That said, there's probably a better and/or more obvious way to achieve this.