fixed 404 test on result.rows array to check length and not truthiness