delete product site

SUGGESTED

I want to delete product-site records that they do not have transactions in that site.

when I use transaction mass update, it dose not check it has transaction or not and delete it directly and it is wrong because I want to delete the same record from product-site form, system block it and give a message it has transaction

How can I check it has transaction or not in transaction mass update form