original_string: protected function _allowEmpty(Model $model, $field, $value) {
          if (isset($this->_validations[$field]['required'])) {
              $rule = $this->_validations[$field]['required'];
              $required = isset($rule['rule'][1]) ? $rule['rule'][1] : true;
  
              if ($this->_isEmpty($value)) {
                  if ($rule['allowEmpty']) {
                      return true;
  
                  } else if ($required) {
                      return false;
                  }
              }
          }
  
          return false;
      }
code: protected function _allowEmpty(Model $model, $field, $value) {
          if (isset($this->_validations[$field]['required'])) {
              $rule = $this->_validations[$field]['required'];
              $required = isset($rule['rule'][1]) ? $rule['rule'][1] : true;
  
              if ($this->_isEmpty($value)) {
                  if ($rule['allowEmpty']) {
                      return true;
  
                  } else if ($required) {
                      return false;
                  }
              }
          }
  
          return false;
      }
code_tokens: protected function _allowEmpty ( Model $ model , $ field , $ value ) { if ( isset ( $ this -> _validations [ $ field ] [ 'required' ] ) ) { $ rule = $ this -> _validations [ $ field ] [ 'required' ] ; $ required = isset ( $ rule [ 'rule' ] [ 1 ] ) ? $ rule [ 'rule' ] [ 1 ] : true ; if ( $ this -> _isEmpty ( $ value ) ) { if ( $ rule [ 'allowEmpty' ] ) { return true ; } else if ( $ required ) { return false ; } } } return false ; }
docstring: Allow empty file uploads to circumvent file validations.
  
  @param Model $model
  @param string $field
  @param array $value
  @return bool
docstring_tokens: Allow empty file uploads to circumvent file validations .