valid is already defined and defaults to false, you can use that instead of adding exists since they serve the same purpose.