Cast the location as an array if an empty string.