WP Create User – Preventing repeated information

The function wp_create_user calls ‪wp_insert_user‬ which check to see if $username and $email already exists and if so it returns a new WP_Error so you wont have duplicate users in your database and it wont send the new user email more then once, but i’m not sure if that is the best way to do that.