Similar answer - merely a refactoring of existing code. I'd be happy to make any alterations here, but i don't know why it was written that way.