src/Concerns/Collects.php
public function hasA(string $className): bool
    {
        foreach ($this->items as $remaining) {
            if (is_object($remaining) && is_a($remaining, $className, true)) {
                return true;
            }
        }
        return false;
    }
public function hasA(string $className): bool
    {
        foreach ($this->items as $remaining) {
            if (is_object($remaining) && is_a($remaining, $className, true)) {
                return true;
            }
        }
        return false;
    }
Checks the items during iteration for the given class/interface.

@param string $className
@return bool