Fix unevaluated length func

Noticed this typo: <code>this.db.container.length</code> is a function, and should be evaluated in the context of this if-statement to make sense.