Switch order of if blocks to increase readability
Several if statements in the code started with the negation of the boolean condition to check, which makes it harder to comprehend the code.
Several if statements in the code started with the negation of the boolean condition to check, which makes it harder to comprehend the code.