Use separate variables for "expr != null" conditions. This allows to reuse the result of expr calculation