Made if-statement a little prettier.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>