Function to check if path exists