Prefer certain roles. If you don't get them, then they are not in the setup.
Example:
1. -prefer citizen
If you don't get citizen, you would know that anyone claiming citizen is lying even when the setup allows citizens.
2. -prefer Survivor, Amnesiac
If you don't get them, then it's jester or executioner
Etc...