Solder mask works if the PCB is SMOBC (solder mask over bare copper). SMOBC is the standard practace today, but years ago many boards were tin plated before being masked. When reflowed, these tinned board would wick solder under the mask - sometimes desirable for traces carrying heavy currents.