prevent REE from raising IndexError