Only call set for non-nil values