How do I add a check for "GetAtribute" when do "Get Children"

for _, v in pairs(game:GetService("ReplicatedStorage"):WaitForChild("Items"):WaitForChild("Devices"):GetChildren()) do

I want to add a check for :GetAttribute("BlackMarket") == true then so It show in Black Market Shop instead of Normal shop how do I do it?

if v:GetAttribute("BlackMarket") then

else

Is that how I get children / tools with GetAttribute(“BlackMarket”) == true?