What the HLR is
The Home Location Register is a database inside a mobile network that tracks each subscriber: whether the SIM is active, which switch it is attached to, and whether the phone is roaming. An HLR lookup sends a query to that network and returns the answer in real time. It is the most direct way to learn whether a mobile number is live, because the data comes from the network and not from a static directory.