Sort the options
Simplify an emptyness test
Add counting the matching threads as an option