ruby check if array code example Example: how to check if data is an array or not ruby .kind_of?(Array)