Ensure variable is set.

Thanks @ArtcoInc @John W