PHP, если просто
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];
Terrible Trout
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];