has<T extends Object> method
Whether this object has a component of type T, a component's type
as for get.
Implementation
bool has<T extends Object>() {
if (_component<T>() != null) return true;
_checkComponentType<T>('has');
return false;
}