I think ``setHeader1`` is more readable if written in each if / else branch