Also check for invalid array syntax.