Sure, that looks fine, it fails with the old code and works with the new and is one line shorter.