<?php
if($navinfor[字段名]) {
    echo '现在字段';
} else {
    echo '不显示';
}
?>