Replace call to contains with any