PHP MD check