work out if there is a link. Harder than it sounds

Signed-off-by: epicfinley <epicfinley@gmail.com>