microoptimisation: replace try/catch with return true/false
microoptimisations: isArray, remove redundant `undefined`, remove shift()
Merge pull request #1 from warpech/performance

Performance microoptimisations