purists, and the manufacturers will say that once a container of fluid is opened, if it is not used VERY SOON, it absorbs too much moisture and shouldnt be used.
with that said, ive been working on cars and bikes a long time and ive used open containers of brake fluid before with no consequence. i do, however, make sure that the top is on nice and tight after every use.
its up to you, but if its been sitting for 2 years o would spend a few dollars and get a new bottle