Added allowEmpty setting

This new setting will allow empty values while obeying the allowZero
setting.