You have a very weird idea of what security guards do. They don't sit in front of the entrance all night, scaring off would-be robbers. They are inside the building, in their booth, probably looking over some monitors. They do not provide a deterrent, they just call the cops if something does happen. Robbers have no clue if they are there or not. The heuristic works fine.