def METHOD_NAME(request):
    """
    Simple helper function that checks whether the current request hit one
    of the 'special' paths (paths that need a logged in user).
    """
    # Don't create guest users for requests that are accessing the site
    # through the REST API
    if 'api' in request.path:
        return False
    # Other paths
    match = False
    for path in SPECIAL_PATHS:
        if path in request.path:
            match = True
    return match