check headers

Сheck the headers in the request

We prefer to assign functions to variables like so -> `var hasHeaders = function(...)`