original_string: public static function is_user_in_conversation(int $userid, int $conversationid) : bool {
          global $DB;
  
          return $DB->record_exists('message_conversation_members', ['conversationid' => $conversationid,
              'userid' => $userid]);
      }
code: public static function is_user_in_conversation(int $userid, int $conversationid) : bool {
          global $DB;
  
          return $DB->record_exists('message_conversation_members', ['conversationid' => $conversationid,
              'userid' => $userid]);
      }
code_tokens: public static function is_user_in_conversation ( int $ userid , int $ conversationid ) : bool { global $ DB ; return $ DB -> record_exists ( 'message_conversation_members' , [ 'conversationid' => $ conversationid , 'userid' => $ userid ] ) ; }
docstring: Checks if a user is already in a conversation.
  
  @param int $userid The id of the user we want to check if they are in a group
  @param int $conversationid The id of the conversation
  @return bool Returns true if a contact request exists, false otherwise
docstring_tokens: Checks if a user is already in a conversation .