json([ 'hasNotification' => true, 'notification' => $notification ]); } return response()->json(['hasNotification' => false]); } }