def get_or_default(arr, index, default_value=None):
    """
    Get value at index from list. Return default value if index out of bound

    :type arr: list
    :param arr: List to get value from
    :type index: int
    :param index: Index to get value for
    :type default_value: Any
    :param default_value: Default value
    :rtype: Any
    :return: Value to get
    """
    return arr[index] if len(arr) > index else default_value