Prevent deletion of taxonomy term if associated with a node
Why check if term is associated to a node prior to deletion?
In cases where taxonomy terms are used only for categorizing content on a Drupal powered web page, there should be no harm in deleting them. However sometimes taxonomy is used to store terms critical to the content they are referenced from and in this case steps should be taken to prevent an accidental deletion.