in_array($p['department'] ?? '', $departments, true) )); } if ($persons === []) { return; } ?>