def _is_triangle(sides: list, degenerate: bool = False) -> bool:
    """Return True if given sides form a traiangle."""
    if 0 in sides:
        return False

    if degenerate:
        return sum(sides) == 2*max(sides)
    else:
        return sum(sides) >= 2*max(sides)