Check if given field is skipped in the process.

@param  Field_Contract $field
@return bool
495064
protected function maybe_skip_field( Field_Contract $field ) {
		// Don't process fields in $skip_proccess_types.
		if ( in_array( $field->get_type(), static::$skip_proccess_types ) ) {
			return true;
		}

		if ( $field->is_disabled() || false === $field->get_option( 'save_field', true ) ) {
			return true;
		}

		$id = $field->get_id();

		if ( $group = $field->get_group() ) {
			$id = $group->get_id() . '.' . $id;
		}

		if ( in_array( $id, $this->skip_proccess_fields ) ) {
			return true;
		}

		return false;
	}
1372156
public function fieldPosition($field)
    {
        if ($field instanceof FormField) {
            $field = $field->getName();
        }

        $i = 0;
        foreach ($this->dataFields() as $child) {
            if ($child->getName() == $field) {
                return $i;
            }
            $i++;
        }

        return false;
    }
801391
protected function error($field, $error)
    {
        $this->errors = array_merge_recursive($this->errors, array($field => $error));

        return false;
    }
671446
public function isFieldHidden(Field $field)
    {
        if ($field->get('hide_when_prepopulated') == 'yes') {
            if (isset($_REQUEST['prepopulate'])) {
                foreach ($_REQUEST['prepopulate'] as $field_id => $value) {
                    if ($field_id == $field->get('id')) {
                        return true;
                    }
                }
            }
        }

        return false;
    }
587402
protected function translationsForFieldValidationWereInjected(Field $field)
    {
        $key = $this->getFormObject()->getClassName() . '-' . $field->getName();

        return true === isset($this->injectedTranslationKeysForFieldValidation[$key]);
    }
1123269
public function hasFieldOfType($fieldType)
    {
        foreach ($this->fields as $field) {
            if ($field['type'] == $fieldType) {
                return true;
            }
        }

        return false;
    }
187824
public function isFillable($field)
    {
        return !in_array($field, $this->guarded) && !$this->fillable || in_array($field, $this->fillable);
    }
232267
private function skipExportField(string $field_name, array $field_options) : bool {
		if (!empty($field_options['options']['process_submit'])) return false;
		if ($field_name == $this::SEPARATOR_HORIZONTAL || $field_name == $this::SEPARATOR_VERTICAL) return false;
		if (!empty($field_options['options']['skip_during_export'])) return false;
		if (!empty($field_options['options']['custom_renderer'])) return false;
		if ($field_options['options']['container_link'] == self::HIDDEN) return false;
		$label = $field_options['options']['label_name'] ?? '';
		if ($label == '' || $label == ' ') return false;
		if ($field_name == '__format') return false;
		return true;
	}
991980
public function errored($field = null)
    {
        if (!func_num_args()) {
            return !!$this->_errors;
        }
        return isset($this->_errors[$field]);
    }
302700
public function isChanged($field = null)
    {
        if ($field) {
            $field = $this->filterInputColumn($field);
            return array_key_exists($field, $this->changedData);
        }
        return $this->isChanged;
    }
408387
public function includeField(Field $field, array $previousValues)
    {
        foreach ($field->getConditions() as $previousField => $condition) {
            $previousFieldObject = $this->getField($previousField);
            if ($previousFieldObject === false
                || !isset($previousValues[$previousField])
                || !$previousFieldObject->matchesCondition($previousValues[$previousField], $condition)) {
                return false;
            }
        }

        return true;
    }
1199930
protected function checkFieldExists($table, $field)
	{
		$this->connect();

		$table = $this->replacePrefix((string) $table);
		$this->setQuery(
			"SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '$table' AND COLUMN_NAME = '$field' ORDER BY ORDINAL_POSITION"
		);

		if ($this->loadResult())
		{
			return true;
		}

		return false;
	}
689423
public function hasSort(string $field): bool
    {
        foreach ($this->sorts as $sort) {
            if ($field === $sort->getField()) {
                return true;
            }
        }

        return false;
    }
976531
private function isRequired($field, $value) {
		
		if(true === isset($this -> required[$field])) {
			
			$empty = true;

			if(true === is_array($value)) {

				foreach($value as $val) {

					if(strlen(trim($val)) > 0) {
						$empty = false;
					}
				}
			}

			if(true === is_string($value) && strlen(trim($value)) > 0) {
				$empty = false;
			}

			if(false === $this -> required[$field] && $empty) {
			    return true;
			}
		}

		return false;
	}
1008678
public function removeField($field)
    {
        if (isset($this->rules[$field])) {
            unset($this->rules[$field]);
            return true;
        }
        return false;
    }
713282
public function isNotNull($field)
    {
        return new Expr\ComparisonExpression($field, new Expr\ValueIdentifier(null), Expr\ComparisonExpression::NEQ);
    }
285551
public boolean isSet(_Fields field) {
    if (field == null) {
      throw new IllegalArgumentException();
    }

    switch (field) {
    case START:
      return isSetStart();
    case FINISH:
      return isSetFinish();
    }
    throw new IllegalStateException();
  }