SyntaxFix
Write A Post
Hire A Developer
Questions
the boolean value of an empty QuerySet is also False, so you could also just do...
... if not user_object: do insert or whatever etc.