Fix an edge case of a ternary-operator within if
Bug with ->{}