Something like
layerStore.each(function(layerRecord){
    if(layerRecord.get("queryable") && layerRecord.getLayer().visibility == true) {
        layers.push(layerRecord.getLayer());
    }
});

you mean ?