Add isHost method to Endpoint.