When you go to precache something, check if its availible on the server, then precache it and set a global bool to true if it can be precached, or to false if it cant.
Then you can just check the bool if its precached or not, and make changes accordingly. No need for a whole new function.