Inject a resource_exists helper