Cursor.next()

If the cursor context is invalid length will already be 0, thus calling next() will return false.