Typo, bad logic on exists function