Simplified check of set membership