function hasRestParam(params) {
      var param = last(params)
      return param ? param.restParam : false;
    }
Test whether a set of params contains a restParam
@param {Param[]} params
@return {boolean} Returns true when the last parameter is a restParam