is_array check. Fixes most of #18