def METHOD_NAME(request, *args, **kwargs):
    """Checks whether kwargs describe proper part of the forum,
    eg. Category(category_id) is connected with that forum and
    Thread(thread_id) belongs to that particular category"""
    if not forum_exists(request):
        return False
    forum = request.contest.forum
    if 'category_id' in kwargs:
        category = get_object_or_404(Category, id=kwargs['category_id'])
        if not category.forum == forum:
            return False
    if 'thread_id' in kwargs:
        thread = get_object_or_404(Thread, id=kwargs['thread_id'])
        if not thread.category == category:
            return False
    if 'post_id' in kwargs:
        post = get_object_or_404(Post, id=kwargs['post_id'])
        if not post.thread == thread:
            return False
    return True