Add function for testing whether a store exists.