Improved have_rows function even further by allowing for breaks within sub loops

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