Speed up by Date.now and Array.isArray #9