Simplify isSet
Merge pull request #161 from megawac/isSet2

Simplify isSet