null entry check in header extraction