Simplified version (without switch) of allowed member check