Might try checking for the returned count of processes from your second enumeration - instead of running through the list, eg:

if $obj3.count ; instances of calc exist
else
; not
endif

-Shawn