Fix ternary operator between closure or othe group of curly brackets