fixed consition, as patternExistsAt is now removed