How do I reorder my conditional statements?