Than we have a different value for $row now in such a case. Before $row was an empty array if ```$result->numRows() > 0``` was false. Same is true for other methods. Please double check that the value of $row stays the same with your changes compared to the old code.