# ArrayIndexExists()

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

```
ArrayIndexExists( array=array, index=number );
```

**Returns:** boolean

# Arguments

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

# Examples

### Check if index exists in array

```cfml
fruitArray = ['apple', 'kiwi', 'banana', 'orange', 'mango', 'kiwi'];

dump(arrayIndexExists(fruitArray,3));

// member function
dump(fruitArray.indexExists(3));
```







# Categories

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

# See Also

[array.indexExists()](../objects/array/indexexists.md)