The has method determines if a given key exists in the collection. Read more in the official Laravel docs.
has