hasParts property Null safety

bool hasParts

Returns true when there are children

Implementation

bool get hasParts => parts?.isNotEmpty ?? false;