public function unique(array $elements, Closure $iterator = null)
    {
        if ( ! is_null($iterator))
        {
            $elements = array_filter($elements, $iterator);
        }
        else
        {
            $elements = array_unique($elements);
        }

        return array_values($elements);
    }