Inline simple membership test.