Use ->instanceOfStorage() not instanceof for Storage instances.