Feels a little janky inside a huge if statement