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