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.
{% if content.field_name.0 %}
{{ field_name }}
{% endif %}