improve isAnyOf()