I don't know node.js - I just copied the line 242 into the if-statement. So if it is not necessary, just delete it ;)