Add check of variable to undefined.