Many values can easily be referenced with $node->field_name->value.
But if this value is missing you'll get an error.
Use $node->get('field_name')->isEmpty() to see if the field has a value.
Many values can easily be referenced with $node->field_name->value.
But if this value is missing you'll get an error.
Use $node->get('field_name')->isEmpty() to see if the field has a value.