detect if we're encoding or not by methods but payload

because we might really want to post/put a false or nil!