This isn't necessary since `fits_open` already has checks like this and some more sophisticated ones built into it.