Use VECTOR_FIND_IF instead of a manual loop