add assert_is_array function

Add a independent function to check if is an array.