Since you're just checking for the module_id field, you could just use `$this->db->sql_fetchfield('module_id');` I'm not sure if there's any performance differences though, so not a big deal.