Check if struct field can be set