Still working on the exists function