add isRegistered method