check structure in pathinfo