Fixing integer check

Fixing logic on bigger than last int seen.