Check for header before removing it