Allow 0 as an option value

Simple change to allow `0` as an option value. Using `obj.value = obj.value || obj.name;` wouldn't allow `0`.