add array check
Merge pull request #171 from scarwu/master

identifyEscapeSequence() needs Array check