This should either be `table.contains(aliases:keyset(), mode)` or `aliases:keyset():contains(mode)` (preferably the latter).