code: function getResult (err) {
          var res = {
              valid: true,
              errors: []
          };
  
          if (err !== null) {
              res.valid = false;
              res.errors.push(err);
          }
  
          return res;
      }
docs: Get an validation result
  @param err
  @return {object}