Why is [name] not a valid array?

It looks like, this is helping me:

Thanks @Automate_with_Rezwan