Checking path existence