Check for array

Closes #5890