I'm not aware of a built-in method to check for this specific situation. I wonder how easy it would be to combine various existing capabilities for this purpose? After thinking about it for a few minutes I'm beginning to think it could be tricky.
This might be a good thing for several people to comment on and discuss different ideas about how it might be implemented.
(Unless of course someone already has an elegant way to do this!)