move code to own message sending function
check if course has members before sending