Window size validity check