Php code improves