I think returning null is fine here because if you need to know what kind of user it is, you should use getAccountType.