Check for existence of path first