check $meta is array and not empty, closes #2