Isn't that something you'd only discover after searching the car? Car searches need to be valid before executing them, not after.
> they tried to ask him if they could search his car.
They tried, failed, and then searched his car regardless.