> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/developers/functions/acpt_meta_group_exists.md).

# acpt\_meta\_group\_exists

Check whether a field group name is already taken (Public API, level 1)

Check whether a field group name is already taken. Read only. Part of the [Public API](https://docs.acpt.io/developers/public-api.md) (level 1, ACPT 2.1.10+).

It answers `true` exactly when [`save_acpt_meta_group_definition`](https://docs.acpt.io/developers/functions/save_acpt_meta_group_definition.md) would refuse that name with `acpt_group_name_taken`.

### Usage

```php
if (acpt_meta_group_exists('book_details')) {
    // pick another name, or reuse the existing group
}
```

### Parameters

| Parameter | Type   | Required | Description          |
| --------- | ------ | -------- | -------------------- |
| `name`    | string | Required | The field group name |

### Return

| Type | Description                   |
| ---- | ----------------------------- |
| bool | `true` when the name is taken |

A name that the definition rules refuse (uppercase letters, longer than 64 characters...) is never "taken": saving it stops at `acpt_invalid_definition` first. So `acpt_meta_group_exists('RULE')` answers `false` even when a group named `rule` exists.
