Python - How do I find out if an AppEngine GQL query returns anything?
===

This may be more of a general python question than an AppEngine specific question. I'm having trouble with determining if my Google AppEngine GQL query returns an object or not.
I'm new to AppEngine and python, so this may be a simple question

I am using the python code:

    user = db.GqlQuery("SELECT * FROM UserStore WHERE user_id = 1234567890")

To check and see if there is a user returned, I've been trying:

    if(user in locals()):
      self.response.out.write('User Exists: ' + user.user_id)
      return
    else:
      CreateTheUser()

But I'm thinking now this is not the best way. Is there a better way to tell if a user (or a list of users) has been returned by the `db.GqlQuery` statement?

