Adjust use of explode and array access, so it works with more php versions.