KAZOO-2615: add type and use wh_json:is_true/3