is path valid