Created a function to check if a path exists and is a link to clean things up a tad