def METHOD_NAME(request, default=''):
    """Helper method to get IP from a request's META dict, if present."""
    if request is not None and hasattr(request, 'META'):
        return get_client_ip(request)[0]
    else:
        return default