Returns true if o is an entity instance O.
true
o
O
bool isEntityInstance(Object? o) { if (o == null) return false; return o is O; }