# IsPathValid

> Returns true if a property exists at the specified PropertyPath.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## IsPathValid\<T>(T, string)

Returns `true` if a property exists at the specified [PropertyPath](/engine/6000.7/script-reference/unity/properties/propertypath.md).

```csharp
public static bool IsPathValid<TContainer>(TContainer container, string path)
```

### Parameters

**** (T): The container tree to search.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The property path to resolve.

### Returns

| Type                                                          | Description                                |
| ------------------------------------------------------------- | ------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a property can be found at path. |

## IsPathValid\<T>(T, PropertyPath)

Returns `true` if a property exists at the specified [PropertyPath](/engine/6000.7/script-reference/unity/properties/propertypath.md).

```csharp
public static bool IsPathValid<TContainer>(TContainer container, in PropertyPath path)
```

### Parameters

**** (T): The container tree to search.**** (\[PropertyPath]\(/engine/6000.7/script-reference/unity/properties/propertypath)): The property path to resolve.

### Returns

| Type                                                          | Description                                |
| ------------------------------------------------------------- | ------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a property can be found at path. |

## IsPathValid\<T>(T, string)

Returns `true` if a property exists at the specified [PropertyPath](/engine/6000.7/script-reference/unity/properties/propertypath.md).

```csharp
public static bool IsPathValid<TContainer>(ref TContainer container, string path)
```

### Parameters

**** (T): The container tree to search.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The property path to resolve.

### Returns

| Type                                                          | Description                                |
| ------------------------------------------------------------- | ------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a property can be found at path. |

## IsPathValid\<T>(T, PropertyPath)

Returns `true` if a property exists at the specified [PropertyPath](/engine/6000.7/script-reference/unity/properties/propertypath.md).

```csharp
public static bool IsPathValid<TContainer>(ref TContainer container, in PropertyPath path)
```

### Parameters

**** (T): The container tree to search.**** (\[PropertyPath]\(/engine/6000.7/script-reference/unity/properties/propertypath)): The property path to resolve.

### Returns

| Type                                                          | Description                                |
| ------------------------------------------------------------- | ------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a property can be found at path. |
