public function has(string $key): bool
    {
        foreach ($this->repositories as $repository) {
            if ($repository->has($key)) {
                return true;
            }
        }

        return false;
    }
public function has(string $key): bool
    {
        foreach ($this->repositories as $repository) {
            if ($repository->has($key)) {
                return true;
            }
        }

        return false;
    }
public function has ( string $ key ) : bool { foreach ( $ this -> repositories as $ repository ) { if ( $ repository -> has ( $ key ) ) { return true ; } } return false ; }
Check whether the repository contains a given key.

@since 0.1.0

@param string $key Key to check for.

@return bool Whether the repository contained the requested key.
Check whether the repository contains a given key .