**How to reproduce**
```
SELECT any(number * 2) AS n
FROM numbers(100)

┌─multiply(any(number), 2)─┐
│                        0 │
└──────────────────────────┘
```

```
SELECT any(number * 2) AS n
FROM numbers(100)
SETTINGS optimize_move_functions_out_of_any = 0

┌─n─┐
│ 0 │
└───┘

```
{
    if (!child)
        throw Exception("AST item should not have nullptr in children", ErrorCodes::LOGICAL_ERROR);
    if (node->as<ASTTableExpression>() || node->as<ASTArrayJoin>())
        return false; 
    return true;
}
}