Hard hat saves man's life