Using Arr::exists() in Laravel 11.x

In Laravel 11.x, you can use `Arr::exists()` to check if a given key exists in an array. It works similarly to PHP’s built-in `array_key_exists()` function but follows Laravel's `Arr` helper style. Syntax
Arr::exists(array $array, string|int $key): bool
`$array` ? The array to check. `$key` ? The key to look for. Returns `true` if the key exists, otherwise `false`. Example:-
use Illuminate\Support\Arr;

$array = ['name' => 'John Doe', 'age' => 17];

$exists = Arr::exists($array, 'name');
// true 

$exists = Arr::exists($array, 'salary');
// false