Don't throw an error if `elem` param is an empty set. Fixes #3