Fix check for if part of a group