The final result of your search check determines if you spot the trap, not the modifier.