private function arraysAreIdentical (array $array1, array $array2) : bool
    {
        return (0 === \count(\array_diff($array1, $array2)))
            && (0 === \count(\array_diff($array2, $array1)));
    }