def _boundaries_overflow(index: int, radius: int, length: int) -> bool:
    """Checks boundaries defined by the index of the center and the radius are
    inside the sequence of given length.

    Returns True if boundaries are already outside the sequence,
    False otherwise.
    """
    return ((index + radius) >= length) or ((index - radius) < 0)