adding isset check for HTTP_ACCEPT_ENCODING and HTTP_ACCEPT_LANGUAGE