if-statement made more readable.