private static function summariseArray(array $var, $depth = 1)
    {
        static $depth = 1;

        if ($depth == 2) {
            return 'Array('.count($var).')';
        }
        elseif (($count = count($var)) > 0) {

            $key = array_keys($var);
            $key = $key[0];
            $value = array_values($var);
            $value = $value[0];

            $mask = 'Array(%1$s){';
            if (is_string($key)) {
                $mask .= '%2$s: ';
            }
            $mask .= '%3$s}';

            $depth = 2;
            $return = sprintf(
                $mask,
                $count,
                $key,
                self::summarise($value)
            );
            $depth = 1;
            return $return;
        }

        return 'Array(0){}';
    }