if (!$storageObject instanceof Storage) {
            throw new Exception("Cannot store railcam footage - could not find a suitable storage destination"); 
        }