private static function isEmptyArrayEquivalent($expected, $actual)
    {
        return (gettype($expected) == 'string')
            && ((gettype($actual) == 'array') || (gettype($actual) == 'NULL'))
            && empty($actual)
            && empty($expected);
    }