Why do you need this condition? ```data.header```should be always defined