Added a check to see if the `fetch` functon exists first