You can just use `if gens` here, and get rid of the `gen_present` variable.