added exists() to Repository