protected function _isFileUploadPresent($entity) {
		$field = $this->getConfig('fileField');
		if ($this->getConfig('ignoreEmptyFile') === true) {
			if (!isset($entity[$field]['error']) || $entity[$field]['error'] === UPLOAD_ERR_NO_FILE) {
				return false;
			}
		}

		return true;
	}
protected function _isFileUploadPresent($entity) {
		$field = $this->getConfig('fileField');
		if ($this->getConfig('ignoreEmptyFile') === true) {
			if (!isset($entity[$field]['error']) || $entity[$field]['error'] === UPLOAD_ERR_NO_FILE) {
				return false;
			}
		}

		return true;
	}
protected function _isFileUploadPresent ( $ entity ) { $ field = $ this -> getConfig ( 'fileField' ) ; if ( $ this -> getConfig ( 'ignoreEmptyFile' ) === true ) { if ( ! isset ( $ entity [ $ field ] [ 'error' ] ) || $ entity [ $ field ] [ 'error' ] === UPLOAD_ERR_NO_FILE ) { return false ; } } return true ; }
Checks if a file upload is present.

@param \Cake\Datasource\EntityInterface|array $entity
@return bool
Checks if a file upload is present .