Would it be more clear to use the ternary operator?

local_manager ? local_manager.max_wire_version : 0