Fix likeArray

```js
//function likeArray(obj) { return typeof obj.length == 'number' }
function likeArray(obj) { return obj && typeof obj.length == 'number' }
```

So it will never throw error like "Uncaught TypeError: Cannot read property 'length' of null"