Handles setting null and undefined and resetting with values