Function isSingleOrWeak