cleanup: switch of if-else branches just to remove the negation

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>