Check for set membership