isvar checks hashable before test for membership