Needs to also check if the var is defined