code: function hasRemoteMethod(model, methodName) {
    return model.sharedClass
      .methods({ includeDisabled: false })
      .map(sharedMethod => sharedMethod.name)
      .includes(methodName)
  }
docs: Helper method to check if a remote method exists on a model
  @param model The LoopBack Model
  @param methodName The name of the Remote Method
  @returns {boolean}