exists method for querysets in django code example
Example: django queryset exists
if some_queryset.exists():
print("There is at least one object in some_queryset")
if some_queryset.exists():
print("There is at least one object in some_queryset")