This is totally at your discretion, but one idiom I've found useful for code readability of large conditionals like this is to instead do `if (!transform->trainable) return;`