private function compare(array $signature, array $metadata): bool
    {
        foreach ($signature as $key => $v1) {

            $v2 = $metadata[$key] ?? null;

            if (! is_null($v2) && $v1 !== $v2) return false;

        }

        return true;
    }
private function compare(array $signature, array $metadata): bool
    {
        foreach ($signature as $key => $v1) {

            $v2 = $metadata[$key] ?? null;

            if (! is_null($v2) && $v1 !== $v2) return false;

        }

        return true;
    }
private function compare ( array $ signature , array $ metadata ) : bool { foreach ( $ signature as $ key => $ v1 ) { $ v2 = $ metadata [ $ key ] ?? null ; if ( ! is_null ( $ v2 ) && $ v1 !== $ v2 ) return false ; } return true ; }
Return whether all keys of the given signature match the given metadata.

@param array $signature
@param array $metadata
@return bool
Return whether all keys of the given signature match the given metadata .