fix indentation
use identity test where appropriate
use camelcase variable names
_getGroupsByMember is a private function