How to tell if something is a link or not