I would use `issparse` to make the distinction.