Removed unnecessary contains check.