There's a better way to do this, right?

Bit flags could be helpful, some things I recently found about it: