fix warning: unused variable 'is_list' [-Wunused-variable]