Check if $excludedGroups not empty

Fixes #18