# ArrayIsEmpty()

Determines if the array is empty.

```
ArrayIsEmpty( array=array );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| array | array | Yes | Name of an array |  |

# Examples

```1
myArray1 = array("Marcus","Sarah","Josefine");
myArray2 = arrayNew(1);

dump(var=arrayIsEmpty(myArray1),label="is myArray1 empty?");
dump(var=arrayIsEmpty(myArray2),label="is myArray2 empty?");
dump(var=myArray1.isEmpty(),label="using member function"); // false
```







# Categories

[Arrays](../../categories/array.md), [Decision logic](../../categories/decision.md)

# See Also

[array.isEmpty()](../objects/array/isempty.md)