- var_dump: documentation ( source)
- array_filter: documentation ( source)
<?php
$test = [
'a' => [],
'b' => ['total' => ['column' => '1']],
'c' => ['total' => ['column' => '2']],
];
var_dump(array_filter($test, function($v){
return isset($v['total'], $v['total']['column']);
}));