isEntryCompartment = (compartment) => {
  return compartment.path?.length === 0
}
Returns `true` if the compartment descriptor is the entry compartment

@param {CompartmentDescriptor} compartment
@returns {boolean}