add exists function for Conditional validations