added also the check that if the variable is there at all