You could avoid the duplicity of parenthesis `if (i === numberOfRequests - 1) {`