fix typo, return empty array when the header field is nil