Simplified group memership check.