There are two `if` blocks in this line. Better use multiple lines for readability.