Add userExists utility function