Drupal 8 Twig cheat sheet
Conditionals
To check if a field has a value, check to see if the 0
array item is populated. Simply checking if content.field_name
is truthy will not work since that variable will be defined even if the field is empty.