The name of this function is `check_participants_in_doattend` and the comments suggest it returns a True or False status, yet this line implies it has side-effects -- it actually modifies the passed in parameter. One of the two is incorrect and needs to be fixed.