private function walk(array $array, $cb) { foreach ($array as $k => $v) { if ($v === NULL) { continue; } $cb($v, $k); } }