Added check for setVar -> UnboundVar error