Bugfix: check for existing portfolio had invalid logic