more checks for valid indices in integer sequences