Adds a new exists function