PHP class - Switch between detected languages and set a current one