public function handle($file)
    {
        foreach ($this->view_extensions as $ext => $handler) {
            if ($file->exists($ext)) {
                $file = $file->withExtension($ext);
                $file->setMime($handler[1]);
                $file->setFound();
                $handle = $handler[0];
                if (!is_callable($handle)) {
                    $handle = [$this, $handle];
                }
                return call_user_func($handle, $file);
            }
        }

        return $file;
    }