`peers.length` ? :) Also condition seems to be redundant, considering size of numbers in javascript.