removing unused $mrc variable
changing null evaluation to === from ==
removing unused properties, changing evaluation to === and moved count() out of the for loop
typehints added on usort response handling