stock object gets deleted from portfolio array if client sells all shares