if (['checkbox', 'radio'].indexOf(field.type) > -1 && !field.checked) return;
if (typeof field.value === 'undefined' || field.value === '') return;
if (['checkbox', 'radio'].indexOf(field.type) > -1 && !field.checked) return;
if (typeof field.value === 'undefined' || field.value === '') return;