replace containsOneOf with built in exists