#2 Add 'isRegistered' function