if ($this->_context['action'] === 'new' && is_file($file)) {
            $isDuplicate = true;
        } elseif ($this->_context['action'] === 'edit') {
            $existing_handle = $this->_context['handle'];