$collection->has($key)

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