# `GSGlyph hasComponents`

*Instance Method*

Whether any stored layer directly contains a component.

## Declaration

```swift
func hasComponents() -> Bool
```

```objc
- (BOOL) hasComponents;
```

```python
hasComponents() -> bool
```

## See Also

### Components

- [`GSGlyph hasColorsInComponents`](/Core/GlyphsCore/GSGlyph/hasColorsInComponents) — Whether the first shape of the first font master layer is a component whose glyph uses a color-layer format.
- [`GSGlyph decomposeSpecialComponents:`](/Core/GlyphsCore/GSGlyph/decomposeSpecialComponents:) — Decomposes components requiring layer-specific interpolation across each layer group.

