Remove redundant bounds check