check if resource supports purge before trying to call func