Proper initialization and handling of lineDash as an empty array