array_get($array, $key)
$array: array from which key's value is fetched
$key : key with value to be fetched
$array = ['gender' => 'male'];
$value = array_get($array, 'gender');
vdump($value); //male
$array = ['gender' => 'male'];
vdump($array['gender'] ?? false); //male