ensuring that request headers are set to empty array when none is available