Switch require logic