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.
4 jobs for Switch-if-blocks in 29 minutes and 52 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Check
passed #494483
check

00:01:38

 
  Test
passed #494484
flatpak

00:27:18

 
  Deploy
passed #494485
review

00:00:54

manual #494486
allowed to fail manual
stop_review