protected function overwriteExistingField($name)
    {
        if ($this->fields->isEmpty()) {
            return;
        }

        $this->fields = $this->fields->filter(
            function (Field $field) use ($name) {
                return $field->getName() != $name;
            }
        );
    }
protected function overwriteExistingField($name)
    {
        if ($this->fields->isEmpty()) {
            return;
        }

        $this->fields = $this->fields->filter(
            function (Field $field) use ($name) {
                return $field->getName() != $name;
            }
        );
    }
protected function overwriteExistingField ( $ name ) { if ( $ this -> fields -> isEmpty ( ) ) { return ; } $ this -> fields = $ this -> fields -> filter ( function ( Field $ field ) use ( $ name ) { return $ field -> getName ( ) != $ name ; } ) ; }
Overwrite existing field.

@param string $name
Overwrite existing field .