if empty short way php code example
Example: turnery expression php
(condition) ? /* value to return if condition is true */
: /* value to return if condition is false */ ;
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];