Added hasProvider method to test a provider existence