Adds checking for array since it was failing on
travis website.