title: Express route responding with boolean value
body: <p>I'm creating an API route which I would like to respond with a true or false based on the results of a database search. Here is my route:</p>
  
  <pre><code>app.post('/eligibility', function (req, res, next) {
    var current = Math.round(new Date().getTime() / 1000);
    var start = current - (24 * 3600);
    var params = [req.body.guid, start, current];
  
    client.execute(getEligibility, params, {prepare: true}, function(err, result){
        if(err){
          res.status(404).send({message:err});
        }else{
          if(result.rows.length &gt; 0){
            res.send(true);
          }else{
            res.send(false);
          }
  
        }
    });
  })
  </code></pre>
  
  <p>I'm currently returning <code>undefined</code>, what would be the best approach to only returning a boolean value?</p>