Move php check at first
Update merge
Factorize