Simplifying path check on path context condition.