If you have a bottle of whiskey that was opened a few years ago and it was kept sealed in the pantry for this time, the alcohol will be fine. It might not taste the best (especially if the bottle is half empty), but it will be safe to consume.