# array.indexExists()

Returns whether there exists an item in the array at the selected index.

```
array.indexExists( index=number )
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| index | number | Yes | The index which to check |  |

# Examples

```1
	water = ["sea","river","well","bottle"];
	writeDump(water.indexexists(0));
	writeDump(water.indexexists(4));
	writeDump(water.indexexists(5));
```

# Categories

[Arrays](../../../categories/array.md)

# See Also

[ArrayIndexExists()](../../functions/arrayindexexists.md), [Array](../array.md)