Use multiple case conditions to make it clearer. Moreover, all Magento version are supported ? With the default version, it implies it's the case. I would raise a UnsupportedException in the default.