parseAttributes method should always return an array.