I was wondering how I can rewrite the following using ternary within ternary or within alternative syntax.
$tags = get_the_tags();
if (!empty($tags)) {
foreach ($tags as $tag) {
echo $tag->name . ', ';
}
} else {
echo 'foobar';
}