PHP, jeśli jest proste
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];
Terrible Trout
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];