Fixed error when variable didn't exist for doVariableCheck()