diff --git a/SwatDB/SwatDBRecordsetWrapper.php b/SwatDB/SwatDBRecordsetWrapper.php
index <HASH>..<HASH> 100644
--- a/SwatDB/SwatDBRecordsetWrapper.php
+++ b/SwatDB/SwatDBRecordsetWrapper.php
@@ -202,7 +202,7 @@ abstract class SwatDBRecordsetWrapper extends SwatObject
 	 */
 	public function valid()
 	{
-		return isset($this->objects[$this->current_index]);
+		return array_key_exists($this->current_index, $this->objects);
 	}
 
 	// }}}
Fix a bug where recordset wrappers containing null objects will not iterate properly.

svn commit r<I>