For example, if I use UInt8 constant for if condition then only one branch is evaluated:
```sql
SELECT if(1, 'success', throwIf(1, 'Executing FALSE branch'))

┌─'success'─┐
│ success   │
└───────────┘

1 rows in set. Elapsed: 0.003 sec.
```

But if I use some constant expression, then both branches are evaluated:
```sql
SELECT if(empty(''), 'success', throwIf(1, 'Executing FALSE branch'))

0 rows in set. Elapsed: 0.003 sec.

Received exception from server (version 21.12.2):
Code: 395. DB::Exception: Received from localhost:9000. DB::Exception: Executing FALSE branch: While processing if(empty(''), 'success', throwIf(1, 'Executing FALSE branch')). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO)
```
if (result_type->isNullable())
        nulls = std::make_unique<IColumn::Filter>(arguments[0].column->size(), 0);
    MaskInfo mask_info;
    for (size_t i = 1; i <= arguments.size(); ++i)
    {
        if (inverted)
            mask_info = extractInvertedMask(mask, arguments[i - 1].column, nulls.get(), null_value);
        else
            mask_info = extractMask(mask, arguments[i - 1].column, nulls.get(), null_value);
        
        
        if (!mask_info.has_ones || i == arguments.size())
            break;
        maskedExecute(arguments[i], mask, mask_info);
    }
    
    if (inverted)
        inverseMask(mask, mask_info);
    if (nulls)
        applyTernaryLogic<Name>(mask, *nulls);
    MutableColumnPtr res = ColumnUInt8::create();
    typeid_cast<ColumnUInt8 *>(res.get())->getData() = std::move(mask);
    if (!nulls)
        return res;
    MutableColumnPtr bytemap = ColumnUInt8::create();
    typeid_cast<ColumnUInt8 *>(bytemap.get())->getData() = std::move(*nulls);
    return ColumnNullable::create(std::move(res), std::move(bytemap));
}
template <typename Impl, typename Name>
ColumnPtr FunctionAnyArityLogical<Impl, Name>::executeImpl(