good thinking !
I recently found a jar of pasta sauce on a shelf that was probably two years old. While it didn’t poison me, it sure tasted horrible.