title: Do I need a try...catch for requests?
body: <p>I would like to know if I need a <strong>try...catch</strong> for incoming <strong>request</strong>s, like in the following scenario ? And is it redundant if I use the ty..catch and if I check typeof as well ? Would only using try..catch would handle it?</p>
  
  <pre><code>module.exports = function verifyToken(req, res, next) {
          // Get auth header value
          try {
              var bearerHeader = req.headers['authorization'];
          } catch (e) {
              return res.sendStatus(403);
          }
          if (typeof bearerHeader == 'undefined') {
              // Forbidden
              return res.sendStatus(403);
          }
          //split at the space
          const bearer = bearerHeader.split(' ');
          // Get token from array
          const bearerToken = bearer[1];
          // Set the token
          req.token = bearerToken;
          next()
      }
  </code></pre>