[#259] Fix array access

Can't access parts of explode() in the same expression, on older
version of PHP. Fix by moving the array access to separate line.