Abbreviated ternary operator triggers same error.
Can't use abbreviated ternary operator here, else a boolean is returned.