you should use rs.next() to check if there is no record, if you are checking to see if one column is empty (null) for records, then you can do
isnull(column,0)