Change is_some_and
to take by value
#98354
Merged
is_some_and
to take by value
#98354