declare

cursor c1 is
(this is the one that returns 1 or 0 rows)

begin

for v1 in c1 loop

if c1%rowcount = 0 then
(this checks to see how many rows are returned in your cursor)

end loop

end