Return empty dict when value is None.
Test for correct value types before we set any data.