Avoid error when value is nil