You can replace these 4 lines with `helix = not helix`.