path null check