# required

Checks if the value is present

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Toolkit/V.php#L555>

****

```php
V::required($value, $array = null): bool
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$value` (required) | `mixed` | – | – |
| `$array` | `mixed` | `null` | – |

## Return type

`bool`