renamed cohort_is_member function