I think I did it this way in the case that the header was null.