Don't think the outside braces are required. There should be a space before the ternary colon