.account is an object which means .length is always undefined. Fixes #287