[eluser]aquary[/eluser]
In that case, result_array() should already return empty array.
From the userguide
result_array()
This function returns the query result as a pure array, or an empty array when no result is produced.
PS. Somehow, I remembered seeing the $this->db->result(); returned FALSE when it's empty... have to check about this.