check if path exists