You could also integrate this check into the above one. "The encoded key for the account must not be null."