checking for headers before trying to set on them
Merge pull request #6 from barnjamin/master

checking for headers before trying to set on them