perchè non testi che il valore di currentSize sia maggiore / minore di un certo valore che decidi tu, usando semplicemente un if