Check if variable is set

Change-Id: Ie7af57f0416c3f2dee8b3dc15cf06a448984c899