Check more rigidly for var being set.