Check if we have the value before trying to use it.