Why is the uninstall webhook firing multiple times on my app?

I am Shopify app developer , using laravel.
we are in process of submission of another app , we notice that after 1s Aug 2022 , the uninstall webhook is coming to our endpoint more then 1 time , random after 2 min , 5 min or 1 hour .


This is my code :

if( isset( $_SERVER[‘HTTP_X_SHOPIFY_SHOP_DOMAIN’] ) && ( isset( $_SERVER[‘HTTP_X_SHOPIFY_TOPIC’] ) && $_SERVER[‘HTTP_X_SHOPIFY_TOPIC’] == ‘app/uninstalled’ ) ){
$shop = $_SERVER[‘HTTP_X_SHOPIFY_SHOP_DOMAIN’];
$store = Store::where( ‘shop_url’,$shop )->first();
if( !empty( $store ) && !empty( $store->shopify_token ) && $store->uninstalled == false ){
if( $store->webhook_id ){
ShopController::shopify_rest_call($store->shopify_token, $shop, ‘/admin/api/’.env(‘SHOPIFY_API_VERSION’,‘2022-07’).‘/webhooks/’.$store->webhook_id.‘.json’, , ‘DELETE’);

$args = [
‘shopify_token’ => ‘’,
‘uninstalled’ => true,
‘webhook_id’ => null,
];

Store::updateOrInsert([‘shop_url’ => $shop],$args);
}

}
}
http_response_code(200);
return ;