Samsung almost killed foldable phones