Refactores redundant logic when people arent found in ansatte, and moved out the logic to make the stats