How does oil compare with something like brake fluid which you're supposed to keep fresh since it loves absorbing moisture over time? Does it matter that it's sealed? Plastic is technically porous right?
BTW OP I think you're fine with 2 year old oil. I'm sure some member here have oil stashes that exceed 5 year old oil sitting.
Exxon Mobil says it should have a shelf life of five years. But people have used 20 year old oil here with no listed issues. Personally I think 7-10 yrs. is okay for sealed oil in a climate controlled storage. Blackstone did a a study once and found that oil from the 1960's still had additive in suspension, so IDK..
If it's sealed, it's fine. As someone else stated, shake it up first before pouring. If it wasn't sealed, then it's still ok, but maybe it has some more water, but shouldn't be an issue as it'll burn out anyway.