Yep, as long as the class is defined inside the `if` block, it should be fine.