private function validateFieldName($field)
    {
        $fieldName = $field->getName();
        if (!$fieldName || $this->fieldNameExists($fieldName)) {
            throw new FieldNameCollisionException("Field Name: `{$fieldName}` already exists.");
        }

        return true;
    }
private function validateFieldName($field)
    {
        $fieldName = $field->getName();
        if (!$fieldName || $this->fieldNameExists($fieldName)) {
            throw new FieldNameCollisionException("Field Name: `{$fieldName}` already exists.");
        }

        return true;
    }
private function validateFieldName ( $ field ) { $ fieldName = $ field -> getName ( ) ; if ( ! $ fieldName || $ this -> fieldNameExists ( $ fieldName ) ) { throw new FieldNameCollisionException ( "Field Name: `{$fieldName}` already exists." ) ; } return true ; }
Validates that a field's name doesn't already exist
@param  NamedBuilder $field
@throws FieldNameCollisionException when the name already exists
@return bool
Validates that a field s name doesn t already exist