validate if path exists