Make sure a link exists before deciding if it's external
Fewer double negatives