https://github.com/Comcast/Speed-testJS/blob/master/controllers/CalculatorController.js if (typeof req.body === 'undefined' && (!(req.body).length > 0) ) { can this be if (typeof req.body === 'undefined' && ((req.body).length < 0) ) {