Function isSanitizedEntity