This should be changed to `if y_tick_labels is None:`