php if simple code example Example: php if simple echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];