Since the initialization of this is done, in the OnInit() function, add a condition to prevent "out of range" that is if am in the lowest TF in my array, they is no need adding 1 (for the next HTF) or subtracting 1 (for the next LTF), it should just output a message letting you know.