filter() can get() or has() in O(1)