pub fn is_empty(&self) -> bool {
        self.state.is_null() || TypeId::of::<T>() == TypeId::of::<()>()
    }
Checks if this state is empty. This not only checks for states created
as `Value::Null`, but also those created with `()` explicitly set as
their underlying type.
packages/perseus/src/state/template_state.rs