Move out of if, might have an influence on the Queens benchmark

Signed-off-by: Stefan Marr <git@stefan-marr.de>