'Check if container DB is empty.
:returns: True if the database has no active objects, False otherwise'

def empty(self):

    self._commit_puts_stale_ok()
    with self.get() as conn:
        try:
            row = conn.execute('SELECT    max(object_count)    from    policy_stat').fetchone()
        except sqlite3.OperationalError as err:
            if (not any(((msg in str(err)) for msg in ('no    such    column:    storage_policy_index', 'no    such    table:    policy_stat')))):
                raise
            row = conn.execute('SELECT    object_count    from    container_stat').fetchone()
        return (row[0] == 0)
