How to validate component data

Hello !

I would like to know what is the proper way to validate a component’s data (UE 4.26).
For example, lets say my component has a UPROPERTY pointer that must be set. Is there something built in Unreal to say “this attribute must not be nullptr” or do I have to create my own function and call it in the BeginPlay ?

Thanks !

Assertion macro library:

Yeah I saw that. But what is the correct place to use them in my case ? Do I assert every thing that need to be verified in the BeginPlay ?