code: function isCollectionRequest (req) {
    let isCollection = responseIsCollection(req);
  
    if (isCollection === undefined) {
      isCollection = !lastPathSegmentIsAParameter(req);
    }
  
    return isCollection;
  }
docs: Determines whether the given path is a "resource path" or a "collection path".
  Resource paths operate on a single REST resource, whereas collection paths operate on
  a collection of resources.
  
  NOTE: This algorithm is subject to change. Over time, it should get smarter and better at determining request types.
  
  @param   {Request} req
  @returns {boolean}