Check if user exists by ID (WordPress)

are you sure it works ? username_exists_by_id does not return anything … ?

Also why can’t you do it with wp built in functions ?

$aux = get_userdata( $userid );

if$aux==false){
//does not exist
}else{
//exists
}