def is_valid_service_exploit(e):
    """
    Check whether service exploit is valid
    """
    if type(e) != list or len(e) != 2:
        return False
    if type(e[0]) != float or (type(e[1]) != float and type(e[1]) != int):
        return False
    if e[0] < 0 or e[0] > 1 or e[1] < 0:
        return False
    return True