Updated exists function to pass helpers