This should be changed to `if x_label is None:`.