Welcome to the forum.
There is not, but, there is a wishlist item for that type of rule. Give it a vote.