That entire sequence can be collapsed into simpler, clearer code:

<pre>
args = if data
         [:post, path, data.to_pson, @headers]
       else
         [:get, path, @headers]
       end
</pre>

That way your intent and data structure are much, much clearer.