$collection->has($key)

Checks if an element is present in the collection by its key

  • since: Kirby 2.3.0
  • $key (string)