should fix #951

rather than checking vector equality, this checks element existence