Could this be re-written: if not req.query.resolve or req.query.resolve isnt "true"