IsRegisteredProcess refactored (shorter, faster)