How can I rewrite this if statement using a ternary operator?

```
@if($headerStyle->header_bg_color == NULL)

@else

style="background-color: {{ $headerStyle->header_bg_color }};"

@endif

```

thanks