private function indexOptionsAreMissing(array $mongoIndexOptions, array $documentIndexOptions) : bool
    {
        foreach (self::ALLOWED_MISSING_INDEX_OPTIONS as $option) {
            unset($mongoIndexOptions[$option], $documentIndexOptions[$option]);
        }

        return array_diff_key($mongoIndexOptions, $documentIndexOptions) !== [] || array_diff_key($documentIndexOptions, $mongoIndexOptions) !== [];
    }
private function indexOptionsAreMissing(array $mongoIndexOptions, array $documentIndexOptions) : bool
    {
        foreach (self::ALLOWED_MISSING_INDEX_OPTIONS as $option) {
            unset($mongoIndexOptions[$option], $documentIndexOptions[$option]);
        }

        return array_diff_key($mongoIndexOptions, $documentIndexOptions) !== [] || array_diff_key($documentIndexOptions, $mongoIndexOptions) !== [];
    }
private function indexOptionsAreMissing ( array $ mongoIndexOptions , array $ documentIndexOptions ) : bool { foreach ( self :: ALLOWED_MISSING_INDEX_OPTIONS as $ option ) { unset ( $ mongoIndexOptions [ $ option ] , $ documentIndexOptions [ $ option ] ) ; } return array_diff_key ( $ mongoIndexOptions , $ documentIndexOptions ) !== [ ] || array_diff_key ( $ documentIndexOptions , $ mongoIndexOptions ) !== [ ] ; }
Checks if any index options are missing.

Options added to the ALLOWED_MISSING_INDEX_OPTIONS constant are ignored
and are expected to be checked later
Checks if any index options are missing .