adding null test for Path dir