[BUGFIX] Correct comparison of NULL/FALSE DB query return