Adding functions: has_rows, the_row

Signed-off-by: Elliot Condon <e@elliotcondon.com>