redundant contains check