Avoid doing a query if we only need to check for a single user

Signed-off-by: Suki <suki@missallsunday.com>
No point in having a switch...

Signed-off-by: Suki <suki@missallsunday.com>