We are working on a project using Google App Engine + Google Cloud Datastore. The language used is Python.

At some points of our API, we check if some arg is passed in request, and we make some query on database if arg isn't null. 

Example:

```
result = None
if request.name != '':
    result = ndb.Key('Users', request.name).get()
else:
    return "Missing args."

```

We all agree to not make query if there is no data to query. However, the `get` method returns null if no result was found. In this specific scenario, App Engine + Datastore, couldn't we avoid the principle of not make some **unnecessary query** in favor of reduce [cyclomatic complexity](https://en.wikipedia.org/wiki/Cyclomatic_complexity) of code? My point is, all the nodes of architecture (app server, database, etc) are in a balanced infrastructure, the cost of a **simple** query really matters?

Example:

```
result = ndb.Key('Users', request.name).get()
if result:
    print 'Keep running...'
else:
    return "User not found."

```

Obviously this is a very small part of code to talk about complexity.