Swap checks in if-statement for better readability