Fix: Accidentally switched logic in if construct