Whether model has customfield

@param String $name
@return boolean
486638
public function customfield($name = null, $default = null)
    {
        $customfields = $this->getAssignedCustomfields();
        foreach ($customfields as $customfield) {
            if ($customfield->getName() === $name) {
                $value = $customfield->setModel($this)->getValue();
                return is_null($value) ? $default : $value;
            }
        }
        return $default;
    }
839898
public function field($name)
    {
        if (!isset($this->fieldList[$name])) {
            $this->addField($name);
        }

        return $this->fieldList[$name];
    }
557997
public function hasAttribute($name)
    {
        return
            isset($this->attributesMap[$name])
            && (
                $this->attributesMap[$name] instanceof \Closure
                || isset($this->valueObject->{$this->attributesMap[$name]})
            );
    }
410797
public function hasValidator(string $name): bool
    {
        return isset($this->builtinValidators[$name]) ||
               isset($this->customValidators[$name]) ||
               isset($this->validators[$name]);
    }
908830
public function getField($name)
    {
        return (null !== $name && array_key_exists($name, $this->fields)) ? $this->fields[$name] : null;
    }
1155741
public boolean hasField(final String fieldName) {
        for (final ClassInfo ci : getOverrideOrder()) {
            if (ci.hasDeclaredField(fieldName)) {
                return true;
            }
        }
        return false;
    }
1050262
public function has($name)
    {
        if (\strpos($name, '.') === false) {
            return parent::has($name);
        }

        try {
            $this->getRecursive($name);
        } catch (\Throwable $exception) {
            return false;
        }

        return true;
    }
1334589
public static function has($name)
    {
        return (self::find()->where([self::getNameAttribute() => $name])->one()) ? true : false;
    }
759288
public function field($name) {
        $this->_fields['' . $name . ''] = new Field($name, $this->_name);

        return $this->_fields['' . $name . ''];
    }
103720
def has_field(mc, field_name):
    
    try:
        mc._meta.get_field(field_name)
    except FieldDoesNotExist:
        return False
    return True
1107091
public function getField($name)
    {
        $f = $this->hasField($name);

        if ($f === false) {
            throw new Exception(['Field is not defined in model', 'model' => get_class($this), 'field' => $name]);
        }

        return $f;
    }
158731
public function field($name)
    {
        return isset($this->_properties['fields'][$name])?
            $this->_properties['fields'][$name]:null;
    }
383315
public function hasConfigurator(string $name): bool
    {
        if (isset($this->configurators[$name])) {
            return true;
        }

        if (isset($this->serviceIds[$name])) {
            return true;
        }

        return class_exists($name) && \in_array(FieldSetConfigurator::class, class_implements($name), true);
    }
1005043
public function has($name) {
		if (isset($this->factories_[$name])) {
			return true;
		}
		if (substr($name, -1) === '_') {
			return false;
		}
		return (bool)property_exists($this, $name);
	}
438934
public function isDirty($name)
    {
        /** @type Field_Base $field */
        $field = $this->getElement($name);

        return $this->dirty[$name] ||
            (!$this->loaded() && $field->has_default_value);
    }
50069
public function customfield($grid, $name)
    {
        if (!extension_active('customfields')) {
            return;
        }
        $category     = strtolower(last(explode('\\', get_class($grid->row))));
        $customfields = app('customfields')->get();

        foreach ($customfields as $classname => $fields) {
            if (get_class($grid->row) !== $classname) {
                continue;
            }
            foreach ($fields as $field) {
                if ($field->getName() === $name) {
                    return $this->addCustomfield($grid, $field);
                }
            }
        }

        $fieldView = \Antares\Customfields\Model\FieldView::query()->where([
                    'name'          => $name,
                    'brand_id'      => brand_id(),
                    'category_name' => $category,
                    'imported'      => 0])->first();
        if (is_null($fieldView)) {
            return;
        }
        return $this->addCustomfield($grid, $fieldView);
    }
588821
protected final boolean hasDataField(final String name) throws CouldNotPerformException {
        try {
            MB dataClone = cloneDataBuilder();
            Descriptors.FieldDescriptor findFieldByName = dataClone.getDescriptorForType().findFieldByName(name);
            if (findFieldByName == null) {
                return false;
            }
            return dataClone.hasField(findFieldByName);
        } catch (Exception ex) {
            return false;
        }
    }