Check if centerIndex is out out bounds