php结合if空语句语法

How can I combine the two if statements below, but I would like the page to display the breadcrumbs if one OR the other fields are present.

<?php if (!empty($secondaryslider)): ?>
<?php if (!empty($node->field_upload_banner[0]['view'])) {?>

Use || or OR

if (!empty($secondaryslider) || !empty($node->field_upload_banner[0]['view']))
{
}

Just use an ||:

<?php if ( !empty($secondaryslider) || !empty($node->field_upload_banner[0]['view']) ): ?>

very straight forward

<?php if (!empty($secondaryslider) && !empty($node->field_upload_banner[0]['view'])): ?>