Do not look outside array bounds