[TASK] Added check if variable is defined.