check if it's a valid path