Added check for getVar -> UnboundVar error