add_settings_field() and register_setting() saving blank options?

Yes tried that with a data-tempname="foo" variable that was replaced with name="foo" on form submit only if the input element wasn’t empty.

It still saved an empty option value.

Even when I completely removed the input element from the screen it would still save an empty value. Hence the filter option above.