adding a check for empty header, to avoid displaying stray colon