Actually, now I think it's if the window doesn't exist or it's outside the list. But for
some reason when I put in the conditions for if:
- the window does exist OR
- the window is not before first OR
- the window is not after last,
it still executes the method instead of throwing an OutOfBounds exception even though one
of the conditions is true. Is there some reason why this is the case?