An analogue of the Baire category theorem