title: Better way to perform ternary operator in php
body: <p>wherever I have to write a code that checks the nullability and then preform upon that I write it like this:</p>
  <p><code>$variant-&gt;variant_sku != null ? $skus[] = $variant-&gt;variant_sku : '';</code></p>
  <p>Is there a better way to do it?</p>