public function fileCountValidationCallback()
    {
        if ($this->form && ($object = $this->form->getObject())) {
            if ($this->getMaxFileCount() - 1 < count($object)) {
                return false;
            }
        }

        return true;
    }