PBR auto disable if the routing interface disconneted

Hi all,
Is that possible to let PBR policy auto disabled if the networking interface disconnected?
I met an issue that is a WG connection disconnected. but the PBR still set the routing go through this WG interface. This make the connection error.

How do you check if an interface is disconnected as it is in UP state anyway?
Do you know some iproute2 commands to 100% sure the status is disconnected?
Only WLB uses dynamic rules

ping remote ip of the wireguard tunnel ?

It does not indicate connection issues.
For example firewall that does not allow ICMP