don't check 1st argument is array or not
make `_doDetect()` private
update test
version 0.1.1