I would suggest to use `table.plainPermissions.filter(isExplicitPerm)` here.