Maybe check that `$account` is not NULL.