Updated to check for array
Update to remove wrong empty check
Merge pull request #2175 from dbhurley/master

Updated to check for array