If array returns value 1 display online badgeUse AJAX to check server status in real-time and update badge accordingly.