Your array in this example, a little more than a simple array, is a standard object . And you can take advantage of this. You can use the properties of a standard object using this formula:
$object->property;
in your case an object
$object = $array[1];
or according to this formula as an array
$array[key];
in your case, to get the cat_ID value:
$object->cat_ID;
, :
if ($object->cat_name == 'z_aflyst') {
echo $object->cat_ID;
}