check headers is nil