How to check if user email/name is taken

I think I am reply very late. but I found php example to get the already registered user email, https://blog.dreamfactory.com/wordpress-integration-with-the-dreamfactory-rest-api-platform-for-user-management. Hope this help