Surely it is not rocket science to have a microswitch to engage when locked.
My old Range Rover tells me if my tailgate/bonnet or sunroof is not locked.
Failing that a basic check can be carried out with the mirror and stick devices used in Northern Ireland decades ago to check under vehicles.
Of course today new pilots come straight from the sim/computer game and have little or no mechanical knowledge. It's not on to have to bend down and get the
trousers dirty. That a job for the oilys