Added exists test
Change exists to return bollean