checkHeader already does this check. Why duplicate it?