Can you change this to `if x_axis:`.