Many of these knives also store backup blades in the handle. Other designs, such as foldable box cutters, use a locking clip ...
Make enough attempts to cut foam using whatever you’ve got — utility knife, hacksaw, serrated plastic knife — and you’ll wish hard for something that cuts cleaner, faster, and better.