If someone is caught doping before the last competition, you can't be 100% sure that they were doping before that as well.
Otherwise, they don't find the doping itself, but rather the traces of its breakdown. Otherwise, they would find it in 100% of cases while it's still in the body.