Check if $data is an array or an object.
Change text domain back.
Merge pull request #62 from samikeijonen/2.0

Check $data if it's an array or object.