using `instanceof` breaks when using storage wrappers since they don't subclass the storage they wrap