def cmd_exists(cmds_list, cmd):
    """Check if given command is in list of available commands
    
    @param cmds_list: see L{RTorrent._rpc_methods}
    @type cmds_list: list
    
    @param cmd: name of command to be checked
    @type cmd: str
    
    @return: bool
    """
    return cmd in cmds_list
