Function isEntityObject