@param $field

@return bool
969112
public function hasFieldValue($field)
    {
        $newFiles = array_get($this->files, 'new.image', []);

        foreach ($newFiles as $fieldName => $file) {
            if ($fieldName == $field) {
                return true;
            }
        }

        $existingFiles = array_get($this->files, 'image', []);

        foreach ($existingFiles as $fieldName => $files) {
            if ($fieldName == $field) {
                $deleted = 0;
                $fileCount = count($files);
                foreach ($files as $file) {
                    if ($file['delete']) {
                        ++$deleted;
                    }
                }
                if ($fileCount == $deleted) {
                    return false;
                } else {
                    return true;
                }
            }
        }

        return false;
    }
1077777
public function isValueChanged($field)
    {
        if (!$this->IsNullable($field)) {
            return false;
        }

        return isset($this->nullableChanged[$field]);
    }
368299
public function hasField($fieldName)
    {
        $fields = array_filter($this->fields, function(Field $field) use ($fieldName) {
            return $field->name == $fieldName || $field->getNameWithAlias() == $fieldName;
        });

        if (count($fields) == 0) {
            return false;
        }

        return true;
    }
429153
public function getField($field)
    {
        return isset($this->data[$field])
            ? $this->data[$field]
            : $this->searchField($field);
    }
851358
public function iShouldSeeTheField($field) {
    $element = $this->getSession()->getPage();
    $result = $element->findField($field);
    $this->assertElementVisible($field, $result);
  }
725257
public function offsetExists($field) {
        return isset($this->values[$field]) || isset($this->factories[$field]);
    }
1054878
public function email($field)
    {
        return (filter_var(trim($this->get($field)), FILTER_VALIDATE_EMAIL) !== false) ?: $this->error($field,
            __FUNCTION__);
    }
182231
public function max($field)
    {
        $r = null;
        foreach ($this->queries as $query) {
            $r = $r === null ? $query->max($field) : max($r, $query->max($field));
        }

        return $r;
    }
646229
public function hasMutator($field) {
        $method = sprintf('set%sAttribute', Inflector::camelCase($field));

        if (method_exists($this, $method)) {
            return $method;
        }

        return null;
    }
260109
public function inError(string $field): bool
    {
        foreach ($this->_errors as $item) {
            if ($field === $item['name']) {
                return true;
            }
        }
        return false;
    }
1008330
public function addSubdescriptorField($field)
    {
        if (is_null($this->_subdescriptor)) {
            $this->_subdescriptor = [];
        }
        if (isset($this->object)) {
            $fieldValue = $this->object->getFieldValue($field);
            if (!empty($fieldValue) && !in_array($fieldValue, $this->_subdescriptor)) {
                $this->_subdescriptor[] = $fieldValue;

                return true;
            }
        }

        return false;
    }
639435
public function getField($field)
    {
        if (isset($this->allFields[$field])) {
            return $this->allFields[$field];
        }

        return null;
    }
1292600
public function hasFieldError($field)
    {
        foreach ((array)$this->errors as $err) {

            if ($err instanceof FieldValidationError) {
                $tfield = $err->getFieldResolved();
                if($tfield == $field)
                    return true;
            }
        }

        return false;
    }
6350
public function rules($field)
    {
        return (isset($this->data[$field]) && $validate = $this->data[$field]['validate']) ? $validate : array();
    }
689423
public function hasSort(string $field): bool
    {
        foreach ($this->sorts as $sort) {
            if ($field === $sort->getField()) {
                return true;
            }
        }

        return false;
    }
69827
public function select($field)
    {
        $fields = (is_array($field) ? $field : func_get_args());

        foreach ((array) $fields as $field) {
            $this->fields[$field] = 1;
        }
    }
957144
public function getMessage($field)
    {
        $identifier = ($field instanceof FieldInterface) ? $field->getFieldElementName() : $field;
        foreach ($this->getList() as $error) {
            $field = $error->getField();
            if (is_object($field) && $field->getFieldElementName() == $identifier) {
                return $error->getMessage();
            }
        }

        return false;
    }