Prevent resolving sequences when testing for an index