Fixing issue #3982.

https://github.com/zurb/foundation/issues/3982
changing patch for #3982 to check if array first.

replaces previous patch.
Merge pull request #4068 from btsai/fix_issue#3982

Fixing issue #3982.