def __check_view(active_views, view_index):
    """
        Removes the view in active_views at index view_index if
            - The two lines are coolinear
            - The lines pass through either extremity
    """
    shallow_line = active_views[view_index].shallow_line
    steep_line = active_views[view_index].steep_line
    if shallow_line.line_collinear(steep_line) and (shallow_line.
        p_collinear(0, 1) or shallow_line.p_collinear(1, 0)):
        del active_views[view_index]
        return False
    else:
        return True
