This is pretty much the right way, I suggest you use NULL as the default instead of the string '0', wherever you are.
You can also use this function for any type of array, and not just for global vars, so instead of
$var = isset($arr['key']) ? $array['key'] : NULL
you just did (Kohana 3.0)
$var = Arr::get($arr, 'key', NULL);
or (Kohana 3.1 +)
$var = $request->query('key');
source
share