Use if block instead of inline if.