Remove unused local variable

Just count if there are array members

Change-Id: I4f9cc8ba554404796822317fdb285e2f560d01dd