Usually you use
@@FETCH_STATUS
.
See this
MSDN Article[
^] for example.
BTW, if the only reason for this cursor to check if there are records available in the table you could use EXISTS:
IF EXISTS(SELECT 1 FROM Invoice)
BEGIN
PRINT 'RECORDS AVAILABLE';
END