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