Refactor check for watched parent path