indexOf returns -1 if value not found

caught this