Remove useless hasHeaders method