You're right. But I still think that copy-pasting this code isn't a right idea. Perhaps you can use local variable which would be set conditionally to either `this.sockets` or `this.freeSockets`.