As long as the food was not exposed to unnecessary heat or humidity and is dry, I would use it. You may have some degredation of some vitamins and the nutritional quality may not be the exact same as a new container, but I wouldn't worry about it harming the fish.