check for existing link before deleting (don't remove non-link)