bool contains(Key id) { for (final s in _stack) { if (s.seen.contains(id)) return true; } return false; }