should you check for index out of bound condition?