def check_valid(choices, selection):
    """Checks if {choice} is a valid selection from a menu, given {selections}

	returns -> bool:is_valid"""
    try:
        selection = int(selection)
    except:
        return False
    if selection == 99:
        return True
    if not selection in list(range(1, len(choices) + 1)):
        return False
    return True
