This is too long to be a ternary and would be better suited as a if/else statement for clarity.