Fix horibly nested if statement