Make sure variable is defined before using it.