The contains check is not a very general assumption to make ... though might be reasonably practical for first cut.