Implement resource_exists callback