Made php code more readable