Doing path checks