Well, in a trench warfare, I can assure you a metal detector is the last thing you will need. Just ask any Ukrainian solder. :)
You only need to find your edge, whatever that may be. For some, that might just turn out to be a shovel. After all, not everyone has the same knowledge when it comes...