if times_label is not None:

more explicit. If times_label is an empty string is will also not enter the branching.