You default to an empty list here, but later use wh_json:to_proplist/1, which would fail if the default value was used. Should be `wh_json:new()` as the default, no?