src/Concerns/HasMiddleware.php
protected function middlewareGroupIsEmpty(string $group = null): bool
    {
        return $this->getMiddlewareGroup($group ?: $this->middlewareGroupId)->isEmpty();
    }
protected function middlewareGroupIsEmpty(string $group = null): bool
    {
        return $this->getMiddlewareGroup($group ?: $this->middlewareGroupId)->isEmpty();
    }
Checks to see if the given/current group is empty.

@param string|null $group
@return bool