Grouping true booleans in an array

I have an enemy hitting a bunch of tiles, and through a loop, I check all the tiles if the enemy is hitting them. I trace them and some will tell me if it’s true or false. I want to be able to get the enemy to randomly choose from those that are true, and go on those tiles. I was thinking of putting all of the hitTests that are true to be put into a separate array. Do I have the right idea, or is there another way of doing this?

for (var j:int = 0; j < tileset.length; j++){
               trace(tileset[j].currentFrameLabel, tileset[j].hitTestObject(enemy));
                     if (tileset[j].hitTestObject(enemy) && !tileset[j].tileMiddle.hitTestObject(player)) {
                            trace("true!");
                        }