Fix a bug in .data(value)

Check if value is Array before matching length