add beginnings of bound var existence check, rename getVar to GetVar