This should not be necessary. It should not be possible to get to this point with an invalid "storeType" value.