function assertNotificationFilterIsEmpty (notificationFilter, onProtocolError = () => {}, observer) {
  if (notificationFilter !== undefined) {
    const error = newError(
      'Driver is connected to a database that does not support user notification filters. ' +
        'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
        `Trying to set notifications to ${json.stringify(notificationFilter)}.`
    )
    // unsupported API was used, consider this a fatal error for the current connection
    onProtocolError(error.message)
    observer.onError(error)
    throw error
  }
}
Asserts that the passed-in notificationFilter is empty
@param {NotificationFilter} notificationFilter
@param {function (err:Error)} onProtocolError Called when it does have notificationFilter user set
@param {any} observer