private static function getHeaders(array $data) { if (array_key_exists('header', $data)) { return $data['header']; } return []; }