refactor(utils): isInSet method