How do I temporary hide corridor geometry?

I have the following code for my corridor geometry:

storearray.push(viewer.entities.add({
                            name: "Corridor ",
                            show:true,
                            corridor: {
                                positions: Cesium.Cartesian3.fromDegreesArray(outcoordarr),
                                height: showheight,
                                extrudedHeight: heightfromground,
                                cornerType: Cesium.CornerType.BEVELED,
                                width: 1.0,
                                material: heightcolor
                            }}));

How can I hide this geometry temporarily? I am using the following code:
viewer.entities.show(storedarray)=false;

When you do viewer.entities.add it returns an entity. You can set the .show property to true/false on that entity.